Skip to content

Chef Cookbook - Examples of migrating from ServerSpec to InSpec

License

Notifications You must be signed in to change notification settings

bonusbits/example_serverspec_to_inspec

Repository files navigation

Example ServerSpec to InSpec Migration

CircleCI Join the chat at https://gitter.im/bonusbits/example_serverspec_to_inspec

Purpose

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.

Environment

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     

Part 1 - Create a ServerSpec Tested Cookbook

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.

Links

Part 2 - Convert ServerSpec to InSpec Local Tests

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.

Links

Part 3 - Convert Local InSpec Tests to Shared InSpec Profile

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.

Links

Other Links

About

Chef Cookbook - Examples of migrating from ServerSpec to InSpec

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published