Skip to main content

Automated Testing for Chef Using ChefSpec, InSpec, and Kitchen

Hands-On Lab

 

Photo of

Training Architect

Length

01:30:00

Difficulty

Beginner

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.

What are Hands-On Labs?

Hands-On Labs are scenario-based learning environments where learners can practice without consequences. Don't compromise a system or waste money on expensive downloads. Practice real-world skills without the real-world risk, no assembly required.