Skip to content

Commit 344dcb9

Browse files
committed
(maint) disable selinux tests for redhat8
1 parent 73134ae commit 344dcb9

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

spec/acceptance/alternative_port_spec.rb

+10-4
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,18 @@
22

33
# These tests ensure that postgres can change itself to an alternative port
44
# properly.
5-
describe 'postgresql::server', skip: 'IAC-1286' do
5+
describe 'postgresql::server' do
66
it 'on an alternative port' do
77
pp = <<-MANIFEST
8-
class { 'postgresql::server': port => '55433', manage_selinux => true }
9-
MANIFEST
10-
idempotent_apply(pp)
8+
class { 'postgresql::server': port => '55433', manage_selinux => true }
9+
MANIFEST
10+
if os[:family] == 'redhat' && os[:release].start_with?('8')
11+
apply_manifest(pp, expect_failures: false)
12+
# GCP failures on redhat8 IAC-1286 - idempotency failing
13+
# apply_manifest(pp, catch_changes: true)
14+
else
15+
idempotent_apply(pp)
16+
end
1117
end
1218

1319
describe port(55_433) do

spec/spec_helper_acceptance_local.rb

-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ def install_dependencies
6363
MANIFEST
6464

6565
LitmusHelper.instance.apply_manifest(selinux)
66-
#LitmusHelper.instance.run_shell('sudo setenforce 0', expect_failures: true) if %r{redhat|oracle}.match?(os[:family])
6766
end
6867

6968
def postgresql_version

0 commit comments

Comments
 (0)