Automated Testing for Chef Using ChefSpec, InSpec, and Kitchen
As infrastruture configuration is moved into code, using tools like Chef, it is important to have confidence in the code before deploying configuration changes. Source control management, automated testing, and continuous integration are key to providing this confidence.
In this activity, we'll modify a Chef cookbook to ensure that it meets the requirements laid out in both unit and integration tests. To complete this activity, you will need to demonstrate an understanding of ChefSpec and InSpec syntax and assertions as well as the ability to implement the configuration necessary to make the tests pass.