kitchen-chef-extended-attributes Kitchen Driver
Use test-kitchen with chef-solo - and automatically link suites to the same named JSON dna file to ensure your node specification doesn't drift from your test definition.
Install & Usage Instructions
See: https://github.com/jeremyolliver/kitchen-chef-extended-attributes for more details
gem install kitchen-chef-extended-attributes
OR
in your Gemfile:
gem 'test-kitchen'
gem 'kitchen-vagrant'
gem 'kitchen-chef-extended-attributes'
and bundle install
In your .kitchen.yml
set the provisioner to chef_extended_attributes
provisioner:
name: chef_extended_attributes
merge_attributes: true # the default
role_path: 'roles'
nodes_path: 'nodes'
platforms:
- name: ubuntu-14.04
# Suites will have node data loaded from nodes_path (nodes/.json)
suites:
- name: app
run_list:
- "recipe[minitest-handler]" # this is merged with the run_list definition in nodes