aboutsummaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorMichael Hashizume <mhashizume@users.noreply.github.com>2022-03-21 09:26:10 -0700
committerGitHub <noreply@github.com>2022-03-21 09:26:10 -0700
commit256435cea5f3213be629158fee1171a88bd56523 (patch)
treeea84924362484b151c77c58ff5187888a3bac987 /spec
parent681db673d61cf7980abbf1b422d19ec8aa24c35f (diff)
parent48b3e2154f63520a0696932024bef12ab5bdac0b (diff)
downloadpuppet-augeas_core-256435cea5f3213be629158fee1171a88bd56523.tar.gz
puppet-augeas_core-256435cea5f3213be629158fee1171a88bd56523.tar.bz2
Merge pull request #52 from cthorn42/maint/main/add_solaris_fix_for_agent_installs
(maint) Fix up pre-suite for beaker tests
Diffstat (limited to 'spec')
-rw-r--r--spec/spec_helper_acceptance.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/spec_helper_acceptance.rb b/spec/spec_helper_acceptance.rb
index a6836f2..6654675 100644
--- a/spec/spec_helper_acceptance.rb
+++ b/spec/spec_helper_acceptance.rb
@@ -1,10 +1,16 @@
require 'beaker-rspec'
+require 'beaker-puppet'
require 'beaker/module_install_helper'
require 'beaker/puppet_install_helper'
RSpec.configure do |c|
c.before :suite do
unless ENV['BEAKER_provision'] == 'no'
+ # Until solaris gets new image we need to add to the cert chain on solaris, call a beaker-puppet setup script to handle this
+ bp_path, _status = Open3.capture2('bundler info beaker-puppet --path')
+ bp_path.strip!
+ solaris_patch_path = bp_path + '/setup/common/003_solaris_cert_fix.rb'
+ require solaris_patch_path
run_puppet_install_helper
install_module_on(hosts)
install_module_dependencies_on(hosts)