From the course: Learning Chef

Unlock this course with a free trial

Join today to access over 25,500 courses taught by industry experts.

Test deployments with Kitchen

Test deployments with Kitchen

From the course: Learning Chef

Test deployments with Kitchen

- [Instructor] So far in this class, I've demonstrated writing some basic Chef code, and deploying it inside of a virtual machine. Then I went through and actually bootstrapped a cloud instance to test our Apache cookbook, and see if it deploys properly. This is a great way to get to know Chef, however, you should understand that Chef itself is a very test-driven ecosystem. This means that we can actually test our cookbooks using some tools that are included inside of the Chef development kit. I want to introduce you to the testing framework called Test Kitchen. Understand that testing is a huge part of working with infrastructure. We want to actually see if our code accomplishes what we expect it to before we ever think about deploying that code to some sort of production environment. We're trying to move away from the excuse "well, the code worked on my machine". I want you to think about what it would take in order to actually verify that our cookbook, the Apache cookbook, is…

Contents