Kitchen tests which require multiple VMs?


#1

Is there any way to use Kitchen to test cookbook for distributed software that requires multiple nodes to complete tests?


#2

Not currently, but there’s a Chef RFC for working on it here:

Thanks,
Matt Ray
Manager, Solutions Architect - APJ :: Chef
matt@chef.io
AUS: +61 457 231 372
US: +1 512 731 2218
mattray :: GitHub :: IRC :: Slack :: Twitter


#3

In the mean time, take a look at the kitchen testing in https://github.com/shortdudey123/chef-gluster

In this cookbook, I converge several nodes, verify via the last node, then destroy all nodes.

Grant


#4

Thanks for the update. Wondering if anyone has ever tried just creating a VM with a Chef Server and several VMs with chef-clients? Thought I would try this approach first since I want to have Jenkins test cookbooks as soon as possible. I also thought having a VM to use as a QA Chef Server would help so cookbooks could be upload then tested before actually uploading them to the production Chef Server?


#5

Thanks Grant. I’ll take a look chef-gluster and see if it looks useful for my needs.