[chef] ChefSpec included recipe resources


Chronological Thread 
  • From: Yoshi Spendiff < >
  • To: chef < >
  • Subject: [chef] ChefSpec included recipe resources
  • Date: Wed, 19 Aug 2015 17:09:11 -0700

Hi,

I have a cookbook that has a few recipes, so of them install packages using the package resource.

I have ChefSpec tests for each of these individual recipes that check that the package resource is doing something. All is well.

I also have a default recipe in this cookbook that includes some of the other recipes in the cookbook, including ones that have a package resource. In fact that's all that recipe does (include_recipe) so in my ChefSpec tests for that recipe I just check for the includes.

When looking at the code coverage reports from ChefSpec they're saying there's a bunch of yum_package resources that are not being touched, which match up to the package resources in the other recipes. At no place do I actually use a yum_package resource.

Why is this specifying yum_package instead of using the package resource and check? Can I make it not do this?

--
Yoshi Spendiff
Ops Engineer
Indochino
Mobile: +1 778 952 2025



Archive powered by MHonArc 2.6.16.

§