chef-umami icon indicating copy to clipboard operation
chef-umami copied to clipboard

A tool to automatically generate test code for Chef cookbooks and policies.

Results 8 chef-umami issues
Sort by recently updated
recently updated
newest added

Per convo in chef-community Slack: me: > do you have a doc/reference to ServerRunner not being recommended any longer? coderanger: > Yes, the README > As you can see, it's...

To simplify and centralize requirements to execute tests, `chef-umami` should write a `spec_helper.rb` for integration and unit tests and have all `spec` files reference it, where appropriate.

enhancement

When writing tests where a parameter is an array, we end up writing out a string version of the array. This breaks tests like `package`. Here are some example failures...

bug

We have a lot of recipes with if statements guarding recipes, in some cases the entire thing, to ensure the recipes only runs on certain machines. This makes umami very...

enhancement

If the current repo does not have a `Policyfile.lock.json file`, `chef exec umami` will fail with the following message: ``` mcleod8@ip-1-70-103-68:~/chef-cookbooks/orion$ chef exec umami /home/rmcleod8/.chefdk/gem/ruby/2.3.0/gems/chef-umami-0.0.2/lib/chef-umami/runner.rb:52:in `validate_lock_file!': Unable to locate 'Policyfile.lock.json'...

bug

InSpec tests `cron` resources in `crontab` blocks. Let's fix up the code to address this.

bug

Extend `umami` so that it can support custom resources and write out their tests.

enhancement

This is a project that hopes to make it easier to write tests for Chef cookbooks and yet it has no tests itself! Fix this.

bug