Test kitchen 1.11.0 just hit ruby gems. You can checkout the full changelog here. Just a couple of the enhancements include:
- Provide some way for Chef to know it’s running under test
- Ability to work with Instances over SSH tunnel
You can also expect this release to ship with the next chef-dk. Jenkins is washing his hands in preparation to build that very soon.
Provide some way for Chef to know it’s running under test
For those that don’t want to go digging in the CHANGELOG, you can now check
if ENV['TEST_KITCHEN'] from inside Chef cookbook code to know if you are running under TK. You can check
ENV['CI'] which will be set if
$CI was set on the machine running
kitchen (which in turn is generally set by things like Travis and Jenkins to indicate you are in a CI build).
Just released a patch build 1.11.1 to address a case where a
nil password prevents the use of ssh keys.