Skip to content

Instantly share code, notes, and snippets.

@jyotty
Created February 28, 2013 20:08
Show Gist options
  • Save jyotty/5059686 to your computer and use it in GitHub Desktop.
Save jyotty/5059686 to your computer and use it in GitHub Desktop.
Testing chef cookbook recipes on two instances with test-kitchen 1.0 and kitchen-bluebox in just under three minutes
$ be kitchen test all -p
-----> Starting Kitchen
-----> Cleaning up any prior instances of <default-ubuntu-1204>
-----> Cleaning up any prior instances of <default-sl-63>
-----> Destroying <default-ubuntu-1204>
-----> Destroying <default-sl-63>
Called 'load_file' without the :safe option -- defaulting to safe mode.
Finished destroying <default-sl-63> (0m0.00s).
-----> Testing <default-sl-63>
-----> Creating <default-sl-63>
Called 'load_file' without the :safe option -- defaulting to safe mode.
Blocks instance <dc4aca7f-afa5-441c-8a51-0d60656d45cb> destroyed.
Finished destroying <default-ubuntu-1204> (0m0.33s).
-----> Testing <default-ubuntu-1204>
-----> Creating <default-ubuntu-1204>
Called 'load_file' without the :safe option -- defaulting to safe mode.
Blocks instance <908d5565-fd61-488c-b8a8-4b85f277f608> created.
. Blocks instance <1252aa7d-859a-4da2-96ee-d9c5ffd8787b> created.
......................................... (server ready)
. (ssh ready)
Finished creating <default-sl-63> (0m31.80s).
...
Finished creating <default-ubuntu-1204> (0m52.08s).
[snipped omnibus install and convergence]
-----> Running bats test suite
...
Finished verifying <default-sl-63> (0m0.81s).
-----> Destroying <default-sl-63>
Blocks instance <1252aa7d-859a-4da2-96ee-d9c5ffd8787b> destroyed.
Finished destroying <default-sl-63> (0m2.87s).
Finished testing <default-sl-63> (2m39.95s).
-----> Running bats test suite
...
Finished verifying <default-ubuntu-1204> (0m0.86s).
-----> Destroying <default-ubuntu-1204>
Called 'load_file' without the :safe option -- defaulting to safe mode.
Blocks instance <908d5565-fd61-488c-b8a8-4b85f277f608> destroyed.
Finished destroying <default-ubuntu-1204> (0m0.49s).
Finished testing <default-ubuntu-1204> (2m53.47s).
-----> Kitchen is finished. (2m53.86s)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment