Examples directory with different sample usage scenarios for configuring Test Kitchen.
The example-kitchen-files
folder contains sample YAML configuration files for Test Kitchen that adhere to the CHEF corporate standard for instance tags. These standards are trivial to remove, extend, or override so they are included to show more complete examples.
See Detailed Information
The data-bag-usage
directory includes a cookbook example with different ways of using data bags with Test Kitchen.
- Default data_bag location - The default kitchen suite in the cookbook looks in the location
test/integration/databags
since it is not otherwise specified for data_bag content. The contents of thedefault
databag located attest/integration/data_bags/default
is consumed by thedefault.rb
recipe of the cookbook. - Alternative data_bag location - The
alt-databag-location
suite specifies an alternate path location in YAML configuration via provisioner configuration fordata_bags_path
under the test suite. Thedefault.rb
picks consumes this data, triggered by the presence of attributekitchen_suite_action
with valuealt-data-bag-location
, specified in the kitchen YAML configuration.