Closed jvrplmlmn closed 7 years ago
how about we not remove all the other testing :)
@shortdudey123 added back rubocop
, foodcritic
and rspec
.
The Kitchen tests are failing for apparently unrelated issues.
Since logrotate
is included in the base install of CentOS and Ubuntu but evidently not the docker images, you should be able to just add it to the provision_command
section and call it good
Ran kitchen
locally and the converge phase fails on the Ubuntu 14.04 box due to issues with the packagecloud repos:
(...)
Hit http://archive.ubuntu.com trusty/restricted amd64 Packages
Hit http://archive.ubuntu.com trusty/universe amd64 Packages
Get:2 https://packagecloud.io trusty/main Sources
Fetched 16.8 kB in 10s (1552 B/s)
W: Failed to fetch https://packagecloud.io/StackStorm/stable/ubuntu/dists/trusty/main/source/Sources Hash Sum mismatch
W: Failed to fetch https://packagecloud.io/StackStorm/stable/ubuntu/dists/trusty/main/binary-amd64/Packages Hash Sum mismatch
E: Some index files failed to download. They have been ignored, or old ones used instead.
(...)
@emedvedev ?
@shortdudey123 @sysbot @armab this is up for review. Let me know if you want me to squash the commits.
Thanks @jvrplmlmn for contributing and @shortdudey123 for reviewing, this is nice feature to have indeed!
Green build looks good enough to me :+1: but @shortdudey123 and @sysbot might have better idea about details.
Since the build works in Travis, I think I'll go ahead and merge it to benefit from this PR. We can change the small things afterwards.
Also, I'd change Docker images to those we already use for testing environment (shipped with init
systems). See:
https://github.com/StackStorm/ansible-st2/blob/master/.kitchen.yml#L24-L39
https://hub.docker.com/r/stackstorm/packagingtest/tags/
@shortdudey123 Feel free to do after-merge changes as well.
Seeing now how helpful it is, would like to say big Thank You to @jvrplmlmn :tada: for implementation :+1:
Tests for CentOS will fail until https://github.com/StackStorm/chef-stackstorm/pull/16 gets merged.
Solves #17
@shortdudey123 @sysbot @armab ?