The purpose of this project is to demonstrate migrating ServerSpec to InSpec automated integration tests in a Chef Cookbook. The process is split into three different HowTo videos I've created and linked below. A git branch for each corresponding training video has been created for easy reference.
Software | Version |
---|---|
macOS | 10.12.4 |
Docker | 17.05.0-ce-rc1 |
Chef Development Kit | 1.3.40 |
kitchen-docker | 2.6.0 |
CircleCi | 2.0 |
Amazon Linux Docker Image | 2017.03 |
The first step is to create and example Chef cookbook that uses ServerSpec integration testing. We'll be setting it up with kitchen-docker Test Kitchen driver.
Next, we take the previously created Chef Cookbook from Part 1 Git Branch in our new 02_inspec_local branch and convert the ServerSpec tests to InSpec local tests.
Next, we create a new git repository for our new shared InSpec profile and add the local InSpec tests to it from Part 2 Git Branch. Finally, we demonstrate calling our remote InSpec Profile suite of tests from out Chef Cookbook Test Kitchen configuration.