cookbook 'example_resources', '= 1.0.0'
example_resources (13) Versions 1.0.0 Follow0
Provider cookbook that defines an example Chef resource. Integration tests in InSpec.
cookbook 'example_resources', '= 1.0.0', :supermarket
knife supermarket install example_resources
knife supermarket download example_resources
example_resources
This is a resource cookbook that demonstrates how to use Inspec for integration testing.
To test
- Install bundled gems using Bundler in context of ChefDK
- Converge in context of Bundler and ChefDK
- Verify in context of Bundler and ChefDK
$ chef exec bundle install $ chef exec bundle exec kitchen converge $ chef exec bundle exec kitchen verify
Gemfile
Note how I lock gem versions using the Gemfile. Run your tests in the context of these Gemfile
locks, otherwise you will likely see errors [at the time of this writing].
$ bundle exec kitchen list
Prerequisites
You probably want the latest ChefDK.
Dependent cookbooks
This cookbook has no specified dependencies.
Contingent cookbooks
Changelog
This file tracks and describes changes to example_resources
.
This project adheres to semantic versioning 2.0.
v1.0.0 (2016-03-17)
- Refactor name from
example_resource_cookbook
toexample_resources
v0.1.0 (2016-03-16)
- Creates
example_resource
- Creates test cookbook
- Supports Centos
Foodcritic Metric
1.0.0 passed this metric
1.0.0 passed this metric