Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit dd1e77f

Browse files
authored
Merge pull request puppetlabs#2047 from sanfrancrisko/fix/mod_authz_ldap_test_rhel8
(maint) Add EPEL repo for RHEL 8 tests in mod_authnz_ldap_spec
2 parents 51ce2ad + 66ade41 commit dd1e77f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

spec/acceptance/mod_authnz_ldap_spec.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44
# We need to restrict this test to RHEL 7.x, 8.x derived OSs as there are too many unique
55
# dependency issues to solve on all supported platforms.
66
describe 'apache::mod_authnz_ldap', if: os[:family] == 'redhat' && os[:release].to_i > 6 do
7+
before(:each) do
8+
run_shell('yum clean all') # To clear some issues when configuring EPEL / Optional repos
9+
run_shell('dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm -y') if os[:release].to_i == 8
10+
end
711
context 'Default mod_authnz_ldap module installation' do
812
pp = if run_shell("grep 'Oracle Linux Server' /etc/os-release", expect_failures: true).exit_status == 0
913
<<-MANIFEST

0 commit comments

Comments
 (0)