Test-kitchen, chef-zero, and data bags

I'm setting up test-kitchen for the first time and using the chef-zero provisioner. I'm not having any luck with chef-zero loading the data bags, roles, and environments when test-kitchen runs. I've verified that they are all being put into /tmp/kitchen-chef-zero and I can load them manually. Here's a snippet from my .kitchen.yml:


provisioner: chef_zero
driver_plugin: vagrant
driver_config:
require_chef_omnibus: true

platforms:

suites:

  • name: default
    encrypted_data_bag_secret_key_path: "../../../.chef_test/secret-file"
    data_bags_path: "../../../.chef_test/data_bags"
    roles_path: "../../../.chef_test/roles"
    environments_path: "../../../.chef_test/environments"
    environment: "dev"
    ...

To get the data bags, etc. out of my chef server, I used the backup_export.rb knife plugin I found here and they all load fine with a 'load from file':

https://github.com/stevendanna/knife-hacks/tree/master/plugins

Any help would be appreciated!

--
Daniel Givens

On Dec 15, 2013, at 8:35 AM, Daniel Givens daniel.givens@rackspace.com wrote:

I'm setting up test-kitchen for the first time and using the chef-zero provisioner. I'm not having any luck with chef-zero loading the data bags, roles, and environments when test-kitchen runs. I've verified that they are all being put into /tmp/kitchen-chef-zero and I can load them manually. Here's a snippet from my .kitchen.yml:

I found that I had an old version of test-kitchen installed. Once I updated and change my config some, I got it working.

--
Daniel