cookbook 'example_library', '~> 0.1.2'
example_library (3) Versions 0.1.2 Follow0
Provider cookbook that defines an example Chef library cookbook. Integration tests in InSpec.
cookbook 'example_library', '~> 0.1.2', :supermarket
knife supermarket install example_library
knife supermarket download example_library
example_library
This is a library cookbook that demonstrates how to use InSpec for integration testing. It's a library cookbook because it defines resources as LWRPs in the /libraries
directory.
These resources are compatible with Chef 12.5 or higher, but are still declared without using the new resource style introduced in Chef 12.5. For an example on using Chef 12.5+ resources, see the cookbook example_resources.
The purpose of this cookbook is to illustrate the relationship between a cookbook that defines a new Chef resource, and another cookbook that consumes it.
To test
Install ChefDK 0.12.0 or higher. (Test Kitchen 1.6.0 or higher is required. Test Kitchen 1.6.0 is bundled with 0.12.0 or higher.)
$ kitchen verify
Development
Author
Created and maintained by Kevin Dickerson of [Loom](loom). kevin.dickerson@loom.technology.
Dependent cookbooks
This cookbook has no specified dependencies.
Contingent cookbooks
There are no cookbooks that are contingent upon this one.
Change log
This file tracks and describes changes to example_library
.
This project adheres to semantic versioning 2.0.
v0.1.2 (05-11-2016)
- Updates project organization, urls, and metadata
- Add change log information for v0.1.1
v0.1.1 (04-04-2106)
- Updates readme for clarity
v0.1.0 (04-04-2016)
- Creates
example_library
, demonstrating a library cookbook subclassing LWRPBase for its resource declarations
Collaborator Number Metric
0.1.2 failed this metric
Failure: Cookbook has 0 collaborators. A cookbook must have at least 2 collaborators to pass this metric.
Contributing File Metric
0.1.2 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file
Foodcritic Metric
0.1.2 failed this metric
FC066: Ensure chef_version is set in metadata: example_library/metadata.rb:1
FC069: Ensure standardized license defined in metadata: example_library/metadata.rb:1
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
0.1.2 passed this metric
Testing File Metric
0.1.2 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
0.1.2 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
0.1.2 failed this metric
0.1.2 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file
Foodcritic Metric
0.1.2 failed this metric
FC066: Ensure chef_version is set in metadata: example_library/metadata.rb:1
FC069: Ensure standardized license defined in metadata: example_library/metadata.rb:1
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
0.1.2 passed this metric
Testing File Metric
0.1.2 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
0.1.2 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
0.1.2 failed this metric
FC069: Ensure standardized license defined in metadata: example_library/metadata.rb:1
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
0.1.2 passed this metric
Testing File Metric
0.1.2 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
0.1.2 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
0.1.2 failed this metric
0.1.2 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number