From f9b7681702de46dc3c92908a284523d3211c9e2b Mon Sep 17 00:00:00 2001 From: donoghuc Date: Fri, 9 Feb 2024 09:31:58 -0800 Subject: [PATCH] (main) Update component acceptance tests to pin highline Component platforms use older OS that we use system ruby to run bolt. Some of these cannot accurately resolve dependencies that consider ruby version. The highline gem released a new major (3) version that drops support for older ruby versions. This commit pins it back in component acceptance tests. --- acceptance/setup/common/pre-suite/010_install_ruby.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/acceptance/setup/common/pre-suite/010_install_ruby.rb b/acceptance/setup/common/pre-suite/010_install_ruby.rb index 5e90e6c407..39003cc020 100644 --- a/acceptance/setup/common/pre-suite/010_install_ruby.rb +++ b/acceptance/setup/common/pre-suite/010_install_ruby.rb @@ -34,6 +34,7 @@ # semantic puppet no longer supports ruby < 2.7 on(bolt, powershell('gem install semantic_puppet -v 1.0.4')) on(bolt, powershell('gem install puppet -v 7.24.0')) + on(bolt, powershell('gem install highline -v 2.1.0')) when /debian|ubuntu/ # install system ruby packages install_package(bolt, 'ruby') @@ -41,6 +42,7 @@ # semantic puppet no longer supports ruby < 2.7 on(bolt, 'gem install semantic_puppet -v 1.0.4') on(bolt, 'gem install puppet -v 7.24.0') + on(bolt, 'gem install highline -v 2.1.0') when /el-|centos/ # install system ruby packages install_package(bolt, 'ruby') @@ -48,6 +50,7 @@ install_package(bolt, 'rubygem-ffi') install_package(bolt, 'rubygem-bigdecimal') install_package(bolt, 'rubygem-io-console') + on(bolt, 'gem install highline -v 2.1.0') when /fedora/ # install system ruby packages install_package(bolt, 'ruby') @@ -59,6 +62,7 @@ install_package(bolt, 'rubygem-json') install_package(bolt, 'rubygem-bigdecimal') install_package(bolt, 'rubygem-io-console') + on(bolt, 'gem install highline -v 2.1.0') when /osx/ # System ruby for osx is 2.3. winrm-fs and its dependencies require > 2.3. on(bolt, 'gem install winrm-fs -v 1.3.3 --no-document') @@ -67,6 +71,7 @@ # semantic puppet no longer supports ruby < 2.7 on(bolt, 'gem install semantic_puppet -v 1.0.4') on(bolt, 'gem install puppet -v 7.24.0') + on(bolt, 'gem install highline -v 2.1.0') else fail_test("#{bolt['platform']} not currently a supported bolt controller") end