d3bf0a09ae
This will bring us up-to-date with the latest version of the rspec-system-* family. Signed-off-by: Ken Barber <ken@bob.sh>
26 lines
693 B
Ruby
26 lines
693 B
Ruby
require 'rspec-system/spec_helper'
|
|
require 'rspec-system-puppet/helpers'
|
|
|
|
include RSpecSystemPuppet::Helpers
|
|
|
|
RSpec.configure do |c|
|
|
# Project root for the firewall code
|
|
proj_root = File.expand_path(File.join(File.dirname(__FILE__), '..'))
|
|
|
|
# Enable colour in Jenkins
|
|
c.tty = true
|
|
|
|
# Import puppet helpers
|
|
c.include RSpecSystemPuppet::Helpers
|
|
c.extend RSpecSystemPuppet::Helpers
|
|
|
|
# This is where we 'setup' the nodes before running our tests
|
|
c.before :suite do
|
|
# Install puppet
|
|
puppet_install
|
|
puppet_master_install
|
|
|
|
# Copy this module into the module path of the test node
|
|
puppet_module_install(:source => proj_root, :module_name => 'puppetdb')
|
|
end
|
|
end
|