Tutorial given at LISA 2014.
This is a hands-on tutorial that will cover the basics that everyone needs to know about how to test your automation code. We’ll start off with a quick introduction to Chef and work our way through writing a fully-tested cookbook or two using linting, unit testing, integration testing, and cross-platform testing.
Hands-on exercises throughout the tutorial will reinforce the material discussed.
Who should attend:
Anyone responsible for managing infrastructure especially those who are interested in automating the provisioning and management of said infrastructure using state-of-the-art tools and practices.
Take back to work:
A working code base that includes samples for building out testable infrastructure components.
Introduction to Chef
Test-driven Development (TDD)
syntax check - knife cookbook test
linting - foodcritic
unit testing - ChefSpec
integration testing - ServerSpec