Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(maint) nightly test failures on Redhat-7 #2171

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 0 additions & 9 deletions spec/acceptance/mod_authnz_ldap_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,6 @@
# We need to restrict this test to RHEL 7.x, 8.x derived OSs as there are too many unique
# dependency issues to solve on all supported platforms.
describe 'apache::mod::authnz_ldap', if: mod_supported_on_platform?('apache::mod::authnz_ldap') do
before(:each) do
if os[:family] == 'redhat'
run_shell('yum clean all') # To clear some issues when configuring EPEL / Optional repos
run_shell('dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm -y') if os[:release].to_i == 8
end
end
context 'Default mod_authnz_ldap module installation' do
pp = if run_shell("grep 'Oracle Linux Server' /etc/os-release", expect_failures: true).exit_status == 0
<<-MANIFEST
Expand All @@ -27,9 +21,6 @@ class { 'apache::mod::authnz_ldap': }
MANIFEST
else
<<-MANIFEST
package { 'epel-release':
ensure => present,
}
class { 'apache': }
class { 'apache::mod::authnz_ldap': }
MANIFEST
Expand Down
5 changes: 4 additions & 1 deletion spec/spec_helper_acceptance_local.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,12 @@ def print_parsing_errors
end
c.before :suite do
# Make sure selinux is disabled so the tests work.
LitmusHelper.instance.run_shell('setenforce 0', expect_failures: true) if %r{redhat|oracle}.match?(os[:family])
LitmusHelper.instance.run_shell('setenforce 0', expect_failures: true) if os[:family] == 'RedHat'

LitmusHelper.instance.run_shell('puppet module install stahnma/epel')

LitmusHelper.instance.run_shell('yum-config-manager --disable rhui-rhel-7-server-rhui-debug-rpms') if os[:name] == 'RedHat' && os[:release].to_i == 7

pp = <<-PUPPETCODE
# needed by tests
package { 'curl':
Expand Down