Skip to content

Commit c0d75cf

Browse files
authored
Merge pull request puppetlabs#2029 from sanfrancrisko/maint/IAC-785_IAC-787_test_backout
(maint) Restrict test exec platforms for accept tests affected by IAC-587, IAC-785 & IAC-787
2 parents cacfb7c + 404ae13 commit c0d75cf

File tree

3 files changed

+26
-22
lines changed

3 files changed

+26
-22
lines changed

spec/acceptance/apache_parameters_spec.rb

+20-20
Original file line numberDiff line numberDiff line change
@@ -92,28 +92,28 @@ class { 'apache':
9292
end
9393
end
9494

95-
if os[:family] == 'debian'
96-
describe 'conf_enabled => /etc/apache2/conf-enabled' do
97-
pp = <<-MANIFEST
98-
class { 'apache':
99-
purge_configs => false,
100-
conf_enabled => "/etc/apache2/conf-enabled"
101-
}
102-
MANIFEST
103-
it 'applies cleanly' do
104-
run_shell('touch /etc/apache2/conf-enabled/test.conf')
105-
apply_manifest(pp, catch_failures: true)
106-
end
95+
# IAC-785: The Shibboleth mod does not seem to be configured correctly on Debian 10 systems. We should reenable
96+
# this test on Debian 10 systems once the issue has been RCA'd and resolved.
97+
describe 'conf_enabled => /etc/apache2/conf-enabled', if: os[:family] == 'debian' && os[:release].to_i < 10 do
98+
pp = <<-MANIFEST
99+
class { 'apache':
100+
purge_configs => false,
101+
conf_enabled => "/etc/apache2/conf-enabled"
102+
}
103+
MANIFEST
104+
it 'applies cleanly' do
105+
run_shell('touch /etc/apache2/conf-enabled/test.conf')
106+
apply_manifest(pp, catch_failures: true)
107+
end
107108

108-
# Ensure the created file didn't disappear.
109-
describe file('/etc/apache2/conf-enabled/test.conf') do
110-
it { is_expected.to be_file }
111-
end
109+
# Ensure the created file didn't disappear.
110+
describe file('/etc/apache2/conf-enabled/test.conf') do
111+
it { is_expected.to be_file }
112+
end
112113

113-
# Ensure the default file didn't disappear.
114-
describe file('/etc/apache2/conf-enabled/security.conf') do
115-
it { is_expected.to be_file }
116-
end
114+
# Ensure the default file didn't disappear.
115+
describe file('/etc/apache2/conf-enabled/security.conf') do
116+
it { is_expected.to be_file }
117117
end
118118
end
119119

spec/acceptance/itk_spec.rb

+3-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@
1414
variant = :prefork
1515
end
1616

17-
describe 'apache::mod::itk class', if: service_name do
17+
# IAC-787: The http-itk mod package is not available in any of the standard RHEL/CentOS 8.x repos. Disable this test
18+
# on those platforms until we can find a suitable source for this package.
19+
describe 'apache::mod::itk class', if: service_name, unless: os[:family] == 'redhat' && os[:release].to_i >= 8 do
1820
describe 'running puppet code' do
1921
let(:pp) do
2022
case variant

spec/acceptance/vhost_spec.rb

+3-1
Original file line numberDiff line numberDiff line change
@@ -1198,7 +1198,9 @@ class { 'apache::mod::shib': }
11981198
end
11991199
end
12001200

1201-
describe 'auth_oidc', unless: (os[:family] == 'ubuntu' && os[:release].to_f == 14.04) do
1201+
# IAC-587: These tests do not currently run successfully on certain RHEL OSs due to dependency issues with the
1202+
# mod_auth_openidc module.
1203+
describe 'auth_oidc', if: (os[:family] == 'ubuntu' && os[:release].to_i > 14 || os[:family] == 'debian') do
12021204
pp = <<-MANIFEST
12031205
class { 'apache': }
12041206
apache::vhost { 'test.server':

0 commit comments

Comments
 (0)