Skip to content

Commit

Permalink
Re-enable bolt tests on RedHat 9
Browse files Browse the repository at this point in the history
Bolt packages now exist for RedHat 9. Re-enable acceptance tests.
  • Loading branch information
traylenator committed Apr 27, 2024
1 parent 584e231 commit cd3bc51
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@
{
"operatingsystem": "Debian",
"operatingsystemrelease": [
"11"
"11",
"12"
]
},
{
Expand Down
3 changes: 2 additions & 1 deletion spec/acceptance/redis_cli_task_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@

let(:task_name) { 'redis::redis_cli' }

unless fact('os.family') == 'RedHat' && fact('os.release.major').to_i >= 9
unless fact('os.name') == 'Debian' && fact('os.release.major').to_i >= 12

include_examples 'an idempotent resource' do
let(:manifest) { 'include redis' }
end
Expand Down
5 changes: 2 additions & 3 deletions spec/spec_helper_acceptance.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,8 @@
# sysctl is untestable in docker
install_puppet_module_via_pmt_on(host, 'puppet-augeasproviders_sysctl') unless host['hypervisor'] == 'docker'

unless fact_on(host, 'os.family') == 'RedHat' && fact_on(host, 'os.release.major').to_i >= 9
# puppet-bolt rpm for CentOS 9 is not yet available
# https://tickets.puppetlabs.com/browse/MODULES-11275
unless fact_on(host, 'os.name') == 'Debian' && fact_on(host, 'os.release.major').to_i >= 12
# puppet-bolt for Debian 12 is not yet available
host.install_package('puppet-bolt')
end

Expand Down

0 comments on commit cd3bc51

Please sign in to comment.