Skip to content

Commit

Permalink
fix(pkg): epel fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
SchoolGuy committed Nov 17, 2023
1 parent e5fc370 commit 1208325
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion test/integration/default/controls/packages.rb
Original file line number Diff line number Diff line change
@@ -1,9 +1,21 @@
# frozen_string_literal: true

# Prepare platform "finger"
platform_finger = system.platform[:finger].split('.').first.to_s

control 'cobbler.package.install' do
title 'The required package should be installed'

package_name = 'cobbler'
# Override by `platform_finger`
package_name =
case platform_finger
when 'centos-8', 'rockylinux-8', 'almalinux-8'
'cobbler3.2'
when 'centos-9', 'rockylinux-9', 'almalinux-9'
'cobbler3.3'
else
'cobbler'
end

describe package(package_name) do
it { should be_installed }
Expand Down

0 comments on commit 1208325

Please sign in to comment.