Adoptable Cookbooks List

Looking for a cookbook to adopt? You can now see a list of cookbooks available for adoption!
List of Adoptable Cookbooks

Supermarket Belongs to the Community

Supermarket belongs to the community. While Chef has the responsibility to keep it running and be stewards of its functionality, what it does and how it works is driven by the community. The chef/supermarket repository will continue to be where development of the Supermarket application takes place. Come be part of shaping the direction of Supermarket by opening issues and pull requests or by joining us on the Chef Mailing List.

Select Badges

Select Supported Platforms

RSS

resource-tester (2) Versions 0.1.4

Exercises core Chef resource across platforms

Berkshelf/Librarian
Policyfile
Knife
cookbook 'resource-tester', '~> 0.1.4'
cookbook 'resource-tester', '~> 0.1.4', :supermarket
knife cookbook site install resource-tester
knife cookbook site download resource-tester
README
Dependencies
Quality 22%

resource-tester cookbook

Requirements

Chef 10.16.2 or higher

Motivation

With the release of 10.16.0, the community quickly found a rather serious bug. (ticket CHEF-3547). The remote_file resource was not keeping it's promises. After talking with Josh, I learned that there are plans to exercise "reference" cookbooks during testing. I needed an excuse to learn minitest-chef, so I decided to start the ultimate reference cookbook. It would exercise all the core Chef resources to make sure they kept their basic contracts.

This cookbook is meant to act as a source of examples for writing tests and cross platform design patterns.

Hopefully it will make it into the testing process.

Usage

cd ~/src/resource-tester bundle exec kitchen test

Attributes

n/a (yet). Add some!

Recipes

default.rb is a monolithic recipe for now.

TODO

TONS. This is just a start. Right now, only the user, file (+cousins), and cron types are exercised. It only works on centos.

My time to work on this is close to non-existent, so its continued developement needs to be a community effort. Send pull requests!

The short list: 1) Add tests for packages and services 2) Refactor to be cross platform across ubuntu 3) Refactor again to work across all "supported" Chef platforms. 4) Devise a strategy for testing "through time". This is needed to test general idempotence, long running node behavior in the face of package updates and repo modifications, multi-phase convergence problems (see pki cookbook), etc.

Author

Author:: Sean OMeara (someara@opscode.com)

Dependent cookbooks

minitest-handler >= 0.0.0

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

Collaborator Number Metric
            

0.1.4 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.4 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.4 failed this metric

FC064: Ensure issues_url is set in metadata: resource-tester/metadata.rb:1
FC065: Ensure source_url is set in metadata: resource-tester/metadata.rb:1
FC066: Ensure chef_version is set in metadata: resource-tester/metadata.rb:1
FC069: Ensure standardized license defined in metadata: resource-tester/metadata.rb:1
Run with Foodcritic Version 12.2.1 with tags metadata,correctness ~FC031 ~FC045 and failure tags any

License Metric
            

0.1.4 failed this metric

resource-tester does not have a valid open source license.
Acceptable licenses include Apache-2.0, apachev2, Apache 2.0, MIT, mit, GPL-2.0, gplv2, GNU Public License 2.0, GPL-3.0, gplv3, GNU Public License 3.0.

No Binaries Metric
            

0.1.4 failed this metric

Failure: Cookbook should not contain binaries. Found:
resource-tester/files/default/der/pde/rpd/erp/derp3.gif
resource-tester/files/default/der/pde/rpd/erp/derp1.gif
resource-tester/files/default/der/pde/rpd/erp/derp2.gif
resource-tester/files/default/spacer.gif

Publish Metric
            

0.1.4 passed this metric

Supported Platforms Metric
            

0.1.4 passed this metric

Testing File Metric
            

0.1.4 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.4 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