Migrate ServerSpec to InSpec Integration Tests in a Chef Cookbook

From Bonus Bits
Jump to: navigation, search


This article gives the steps to migrate from ServerSpec to InSpec Integration tests in a Chef Cookbook. The steps are split into several small parts. Part 1 covers creating a simple Chef Cookbook with ServerSpec tests. Part 2 walks through converting the ServerSpec local tests to InSpec local tests. Finally, in Part 3 we see how to take local InSpec tests and put them in their own repository to gain a shared InSpec Profile. With a shared InSpec Profile we can have countless Cookbooks using the same set of InSpec Profiles without duplicating code.


Reference Github Links

Step-by-Step Instructions

Walkthrough Videos

  • Part 2 - Converting ServerSpec to Local InSpec Tests
  • Part 3 - Converting Local InSpec Tests to Shared InSpec Profile