No commit activity in last 3 years
No release in over 3 years
Contains a standard spec_helper for running acceptance tests on puppet modules
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 2
 Project Readme

Beaker Spec Helper

Collection of helpers/temporary workaround for Beaker

Usage

Add this to your project's Gemfile:

require 'beaker_spec_helper'

Add this to your project's spec_helper_acceptance.rb:

require 'beaker_spec_helper'
include BeakerSpecHelper

Using spec_prep

You can use spec_prep to prepare your environment. It acts like puppetlabs_spec_helper's rake spec_prep by using .fixtures.yaml

Ex:

require 'beaker-rspec'
require 'beaker_spec_helper'
include BeakerSpecHelper

RSpec.configure do |c|
  module_root = File.expand_path(File.join(File.dirname(__FILE__), '..'))
  module_name = module_root.split('-').last

  # Readable test descriptions
  c.formatter = :documentation

  # Configure all nodes in nodeset
  c.before :suite do
    # Install module and dependencies
    puppet_module_install(:source => module_root, :module_name => module_name)
    hosts.each do |host|
      BeakerSpecHelper::spec_prep(host)
    end
  end
end