23 rivejä
598 B
Ruby
23 rivejä
598 B
Ruby
require 'beaker-rspec/spec_helper'
|
|
require 'beaker-rspec/helpers/serverspec'
|
|
require 'beaker/puppet_install_helper'
|
|
|
|
run_puppet_install_helper
|
|
|
|
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
|
|
hosts.each do |host|
|
|
copy_root_module_to(host, :source => proj_root, :module_name => 'inifile')
|
|
end
|
|
end
|
|
|
|
c.treat_symbols_as_metadata_keys_with_true_values = true
|
|
end
|