Skip to content

Commit

Permalink
Only expect the DNF module on EL8
Browse files Browse the repository at this point in the history
This matches the test expectations to the actual code.

Fixes: 908ed63 ("Only install dnf module on EL8")
  • Loading branch information
ekohl committed Feb 16, 2024
1 parent f8489f9 commit aa28c5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/classes/foreman_repo_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
}

it do
if facts[:osfamily] == 'RedHat'
if facts[:osfamily] == 'RedHat' && facts[:os]['release']['major'] == '8'
is_expected.to contain_package('foreman').with_ensure('el8').with_provider('dnfmodule')
else
is_expected.not_to contain_package('foreman')
Expand Down

0 comments on commit aa28c5a

Please sign in to comment.