Bridge between puppet acceptance test harness (beaker) and rspec.
Require beaker-rspec at the top of your spec_helper_acceptance.rb
to have it initialize beaker for you:
require 'beaker-rspec/spec_helper'
By default it will load the nodeset from spec/acceptance/nodesets/default.yml
. The tests will then have access to those hosts.
The following environment variables can be used to influence how beaker works:
BEAKER_color
: set tono
to disable color outputBEAKER_set
: choose a nodeset fromspec/acceptance/nodesets/*.yml
; defaults todefault
BEAKER_setfile
: specify a nodeset using a full pathBEAKER_provision
: set tono
to re-use existing VMsBEAKER_keyfile
: specify alternate SSH keyBEAKER_debug
: set to any value to enable beaker debug loggingBEAKER_destroy
: set tono
to keep the VMs after the test run. Set toonpass
to keep the VMs around only after a test failure.
For details on the specific mappings, the setup code and the beaker docs.