Page MenuHomeSoftware Heritage

spec_helper_acceptance.rb
No OneTemporary

spec_helper_acceptance.rb

require 'beaker-rspec/spec_helper'
require 'beaker-rspec/helpers/serverspec'
hosts.each do |_host|
version = ENV['PUPPET_GEM_VERSION']
install_puppet(:version => version)
end
RSpec.configure do |c|
proj_root = File.expand_path(File.join(File.dirname(__FILE__), '..'))
c.formatter = :documentation
c.before :suite do
hosts.each do |host|
c.host = host
path = (File.expand_path(File.dirname(__FILE__) + '/../')).split('/')
name = path[path.length - 1].split('-')[1]
copy_module_to(host, :source => proj_root, :module_name => name)
on host, puppet('module', 'install', 'puppetlabs-stdlib'), :acceptable_exit_codes => [0, 1]
on host, puppet('module', 'install', 'puppetlabs-java'), :acceptable_exit_codes => [0, 1]
on host, puppet('module', 'install', 'deric-zookeeper'), :acceptable_exit_codes => [0, 1]
end
end
end

File Metadata

Mime Type
text/plain
Expires
Jun 4 2025, 7:39 PM (10 w, 3 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3379747

Event Timeline