[chef] Re: test-kitchen and multiple converges


Chronological Thread 
  • From: Ranjib Dey < >
  • To:
  • Subject: [chef] Re: test-kitchen and multiple converges
  • Date: Tue, 22 Oct 2013 13:18:45 -0700

sorry for the typo: "I think you can do the same with tk now, with some effort. I dont know..."

:-) ranjib



On Tue, Oct 22, 2013 at 1:17 PM, Ranjib Dey < " target="_blank"> > wrote:
yes, you can not do that with chefspec. I test the same, but with lxc & chef zero. I also use a handler to store the updated resources/all resource count. I think you can dont know whats the state of tk, last time i checked it didnt had support for chefserver. If it has now (probably chef-zero support is also there), you can use a handler to store those values, and assert after second convergence.



On Tue, Oct 22, 2013 at 11:45 AM, Greg Symons < " target="_blank"> > wrote:
Ohai, Chefs!

I'm trying to set up a test in test-kitchen to verify the idempotency of one of my resource providers. Has anybody else come up with a way to 1) converge multiple times in a test-kitchen suite and 2) after a second converge verify that nothing has changed (or at the very least none of the things that potentially could've changed if the recipe wasn't idempotent)? I tried testing this in chefspec, but unfortunately it looks like I need a real chef run to expose my idempotency bug.

Thanks,

Greg





Archive powered by MHonArc 2.6.16.

§