Skip to content

(CONT-347) - correct centos/alma/rocky 8 hanging tests #1446

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

Merged
merged 1 commit into from
Jun 19, 2023
Merged
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
4 changes: 4 additions & 0 deletions spec/acceptance/db_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
require 'spec_helper_acceptance'

describe 'postgresql::server::db' do
before(:all) do
LitmusHelper.instance.run_shell("cd /tmp; su 'postgres' -c 'pg_ctl stop -D /var/lib/pgsql/data/ -m fast'", acceptable_exit_codes: [0, 1]) unless os[:family].match?(%r{debian|ubuntu})
end

it 'creates a database' do
tmpdir = run_shell('mktemp').stdout
pp = <<-MANIFEST
Expand Down
4 changes: 4 additions & 0 deletions spec/acceptance/default_parameters_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
# These tests are designed to ensure that the module, when ran with defaults,
# sets up everything correctly and allows us to connect to Postgres.
describe 'postgresql::server' do
before(:all) do
LitmusHelper.instance.run_shell("cd /tmp; su 'postgres' -c 'pg_ctl stop -D /var/lib/pgsql/data/ -m fast'", acceptable_exit_codes: [0, 1]) unless os[:family].match?(%r{debian|ubuntu})
end

it 'with defaults' do
pp = <<-MANIFEST
class { 'postgresql::server': }
Expand Down
4 changes: 4 additions & 0 deletions spec/acceptance/overridden_settings_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
# These tests are designed to ensure that the module, when ran overrides,
# sets up everything correctly and allows us to connect to Postgres.
describe 'postgresql::server' do
before(:all) do
LitmusHelper.instance.run_shell("cd /tmp; su 'postgres' -c 'pg_ctl stop -D /var/lib/pgsql/data/ -m fast'", acceptable_exit_codes: [0, 1]) unless os[:family].match?(%r{debian|ubuntu})
end

let(:pp) do
<<-MANIFEST
class { 'postgresql::server':
Expand Down
4 changes: 4 additions & 0 deletions spec/acceptance/server/config_entry_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
require 'spec_helper_acceptance'

describe 'postgresql::server::config_entry' do
before(:all) do
LitmusHelper.instance.run_shell("cd /tmp; su 'postgres' -c 'pg_ctl stop -D /var/lib/pgsql/data/ -m fast'", acceptable_exit_codes: [0, 1]) unless os[:family].match?(%r{debian|ubuntu})
end

context 'unix_socket_directories' do
let(:pp_test) do
<<-MANIFEST
Expand Down