2014-01-22 02:52:37 +01:00
|
|
|
require 'beaker-rspec/spec_helper'
|
|
|
|
require 'beaker-rspec/helpers/serverspec'
|
2015-06-12 01:49:46 +02:00
|
|
|
require 'beaker/puppet_install_helper'
|
2014-01-22 02:52:37 +01:00
|
|
|
|
2015-06-12 00:31:27 +02:00
|
|
|
run_puppet_install_helper
|
2014-01-22 02:52:37 +01:00
|
|
|
|
|
|
|
RSpec.configure do |c|
|
|
|
|
# Project root
|
|
|
|
proj_root = File.expand_path(File.join(File.dirname(__FILE__), '..'))
|
|
|
|
|
|
|
|
# Readable test descriptions
|
|
|
|
c.formatter = :documentation
|
|
|
|
|
|
|
|
# Configure all nodes in nodeset
|
|
|
|
c.before :suite do
|
|
|
|
# Install module and dependencies
|
2014-06-24 01:56:40 +02:00
|
|
|
hosts.each do |host|
|
2015-02-09 20:50:05 +01:00
|
|
|
copy_root_module_to(host, :source => proj_root, :module_name => 'inifile')
|
2014-06-24 01:56:40 +02:00
|
|
|
end
|
2014-01-22 02:52:37 +01:00
|
|
|
end
|
|
|
|
|
|
|
|
c.treat_symbols_as_metadata_keys_with_true_values = true
|
|
|
|
end
|