From a2e898ff0b33b5dc31180de0052f6cb7593ce979 Mon Sep 17 00:00:00 2001 From: Wilson McCoubrey Date: Tue, 10 Jan 2017 11:42:40 +0000 Subject: [PATCH] [MODULES-4224] Implement beaker-module_install_helper Gemfile updated by modulesync PR: puppetlabs/modulesync_configs#122 --- Gemfile | 1 + spec/spec_helper_acceptance.rb | 9 +++------ 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/Gemfile b/Gemfile index 3d46720..5820775 100644 --- a/Gemfile +++ b/Gemfile @@ -59,6 +59,7 @@ group :system_tests do gem 'beaker-rspec', *location_for(ENV['BEAKER_RSPEC_VERSION'] || '>= 3.4') if ! supports_windows gem 'beaker-rspec', *location_for(ENV['BEAKER_RSPEC_VERSION'] || '~> 5.1') if supports_windows gem 'beaker-puppet_install_helper', :require => false + gem 'beaker-module_install_helper', :require => false gem 'master_manipulator', :require => false gem 'beaker-hostgenerator', *location_for(ENV['BEAKER_HOSTGENERATOR_VERSION']) gem 'beaker-abs', *location_for(ENV['BEAKER_ABS_VERSION'] || '~> 0.1') diff --git a/spec/spec_helper_acceptance.rb b/spec/spec_helper_acceptance.rb index bc0506f..c1217ce 100644 --- a/spec/spec_helper_acceptance.rb +++ b/spec/spec_helper_acceptance.rb @@ -1,5 +1,6 @@ require 'beaker-rspec' require 'beaker/puppet_install_helper' +require 'beaker/module_install_helper' def iptables_flush_all_tables ['filter', 'nat', 'mangle', 'raw'].each do |t| @@ -22,18 +23,14 @@ def do_catch_changes end run_puppet_install_helper +install_module_on(hosts) +install_module_dependencies_on(hosts) RSpec.configure do |c| - # Project root - proj_root = File.expand_path(File.join(File.dirname(__FILE__), '..')) - # Configure all nodes in nodeset c.before :suite do # Install module and dependencies hosts.each do |host| - copy_module_to(host, :source => proj_root, :module_name => 'firewall') - on host, puppet('module install puppetlabs-stdlib --version 3.2.0') - # the ubuntu-14.04 docker image doesn't carry the iptables command apply_manifest_on host, 'package { "iptables": ensure => installed }' if fact('osfamily') == 'Debian' end -- 2.45.2