inspec/examples/kitchen-chef
Tim Smith 097e2deedc Don't include the apt recipe over and over again in the recipes
We run apt_update once with chef and we already update the cache directly on the container at start. We don't need to try to do the same thing 3 other times.

Signed-off-by: Tim Smith <tsmith@chef.io>
2019-02-13 17:19:55 -08:00
..
recipes Don't include the apt recipe over and over again in the recipes 2019-02-13 17:19:55 -08:00
test/integration/default add kitchen-puppet example module 2015-11-27 17:20:41 +01:00
.kitchen.yml switch from solo to zero 2015-11-28 08:11:21 +00:00
Berksfile add kitchen-puppet example module 2015-11-27 17:20:41 +01:00
Gemfile Remove rubocop from example Gemfiles (#2341) 2017-11-27 19:05:52 +01:00
metadata.rb add kitchen-puppet example module 2015-11-27 17:20:41 +01:00
README.md update title of examples 2015-12-11 14:57:21 +01:00

Test-Kitchen - InSpec with Chef Example

This example demonstrates a complete roundtrip via Test-Kitchen.

# install all dependencies
$ bundle install
# show all available tests
$ bundle exec kitchen list
Instance             Driver   Provisioner  Verifier  Transport  Last Action
default-centos-71    Vagrant  ChefSolo     InSpec    Ssh        <Not Created>
default-ubuntu-1204  Vagrant  ChefSolo     InSpec    Ssh        <Not Created>
default-ubuntu-1404  Vagrant  ChefSolo     InSpec    Ssh        <Not Created>

# Now we are ready to run a complete test
$ bundle exec kitchen test default-ubuntu-1404
-----> Starting Kitchen (v1.4.2)
-----> Verifying <default-ubuntu-1404>...

...

Finished in 0.03241 seconds (files took 0.22475 seconds to load)
5 examples, 0 failures

       Finished verifying <default-ubuntu-1404> (0m0.16s).
-----> Kitchen is finished. (0m0.82s)