Skip to content

Commit

Permalink
(main) Update component acceptance tests to pin highline
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
donoghuc committed Feb 9, 2024
1 parent 43abac8 commit f9b7681
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions acceptance/setup/common/pre-suite/010_install_ruby.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,20 +34,23 @@
# 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')
install_package(bolt, 'ruby-ffi')
# 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')
install_package(bolt, 'rubygem-json')
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')
Expand All @@ -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')
Expand All @@ -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
Expand Down

0 comments on commit f9b7681

Please sign in to comment.