[chef] Testing HWRPs


Chronological Thread 
  • From: "Stewart, Curtis" < >
  • To: " " < >
  • Subject: [chef] Testing HWRPs
  • Date: Mon, 10 Mar 2014 21:40:48 +0000
  • Accept-language: en-US

Curious if there’s a best practice for testing HWRPs?

The jenkins cookbook is a great example of using HWRPs.  I’m wondering how to properly write tests for those.  A couple of options came to mind:

1) Write custom chefspec matchers and test with ChefSpec.
2) Test resource/provider methods with RSpec.

Thanks,
Curtis



Archive powered by MHonArc 2.6.16.

§