Information Technology Reference
In-Depth Information
/opt/chef/embedded/bin/ruby -I/tmp/busser/suites/serverspec
-I/tmp/busser/gems/gems/rspec-support-3.1.2/lib:/tmp/busser/gems/gems
/rspec-core-3.1.7/lib /opt/chef/embedded/bin/rspec --pattern /tmp/busser
/suites/serverspec/\*\*/\*_spec.rb --color --format documentation
--default-path /tmp/busser/suites/serverspec
web site
responds on port 80
returns eth1 in the HTML body
Finished in 0.03838 seconds (files took 0.20863 seconds to load)
2 examples, 0 failures
Finished verifying <default-centos65> (0m1.25s).
-----> Kitchen is finished. (0m1.71s)
Figure 16-12. Inspect match results
Just from these two simple examples, we can be fairly certain about whether the website our
Chef code produces actually works. Further, when an error occurs, we can more easily de-
termine whether it was a fault in the Apache webserver setup or in our HTML code because
we check these two conditions separately.
Search WWH ::




Custom Search