Skip to content

Commit 3486054

Browse files
author
jordanbreen28
committed
(CONT-347) - address CI failures
1 parent be88bbf commit 3486054

File tree

5 files changed

+14
-1
lines changed

5 files changed

+14
-1
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ jobs:
1414
secrets: "inherit"
1515

1616
Acceptance:
17-
needs: Spec
1817
uses: "puppetlabs/cat-github-actions/.github/workflows/module_acceptance.yml@main"
18+
# needs: Spec
1919
with:
2020
runs_on: "ubuntu-20.04"
2121
secrets: "inherit"

spec/acceptance/db_spec.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
require 'spec_helper_acceptance'
44

55
describe 'postgresql::server::db' do
6+
before(:all) do
7+
LitmusHelper.instance.run_shell("cd /tmp; su 'postgres' -c 'pg_ctl stop -D /var/lib/pgsql/data/ -m fast'", acceptable_exit_codes: [0, 1]) if os[:family].match?('centos|rocky|almalinux')
8+
end
9+
610
it 'creates a database' do
711
tmpdir = run_shell('mktemp').stdout
812
pp = <<-MANIFEST

spec/acceptance/default_parameters_spec.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
# These tests are designed to ensure that the module, when ran with defaults,
66
# sets up everything correctly and allows us to connect to Postgres.
77
describe 'postgresql::server' do
8+
before(:all) do
9+
LitmusHelper.instance.run_shell("cd /tmp; su 'postgres' -c 'pg_ctl stop -D /var/lib/pgsql/data/ -m fast'", acceptable_exit_codes: [0, 1]) if os[:family].match?('centos|rocky|almalinux')
10+
end
811
it 'with defaults' do
912
pp = <<-MANIFEST
1013
class { 'postgresql::server': }

spec/acceptance/overridden_settings_spec.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
# These tests are designed to ensure that the module, when ran overrides,
66
# sets up everything correctly and allows us to connect to Postgres.
77
describe 'postgresql::server' do
8+
before(:all) do
9+
LitmusHelper.instance.run_shell("cd /tmp; su 'postgres' -c 'pg_ctl stop -D /var/lib/pgsql/data/ -m fast'", acceptable_exit_codes: [0, 1]) if os[:family].match?('centos|rocky|almalinux')
10+
end
811
let(:pp) do
912
<<-MANIFEST
1013
class { 'postgresql::server':

spec/acceptance/server/config_entry_spec.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
require 'spec_helper_acceptance'
44

55
describe 'postgresql::server::config_entry' do
6+
before(:all) do
7+
LitmusHelper.instance.run_shell("cd /tmp; su 'postgres' -c 'pg_ctl stop -D /var/lib/pgsql/data/ -m fast'", acceptable_exit_codes: [0, 1]) if os[:family].match?('centos|rocky|almalinux')
8+
end
69
context 'unix_socket_directories' do
710
let(:pp_test) do
811
<<-MANIFEST

0 commit comments

Comments
 (0)