From 48b3e2154f63520a0696932024bef12ab5bdac0b Mon Sep 17 00:00:00 2001 From: Christopher Thorn Date: Sat, 19 Mar 2022 16:22:19 -0700 Subject: (maint) Fix up pre-suite for beaker tests Solaris packing was updated that requires a newer cert in the keychain of the VMs that we use. However for the older version of Solaris the cert is not on the keychain. This PR calls a beaker-puppet script that will add the required cert to the keychain of the VM. Also follow redirects when downloading agent. --- spec/spec_helper_acceptance.rb | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'spec') 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) -- cgit v1.2.3