Skip to content

Commit

Permalink
Merge pull request #1446 from puppetlabs/CONT-347-address_cancelled_c…
Browse files Browse the repository at this point in the history
…i_runs
  • Loading branch information
chelnak committed Jun 19, 2023
2 parents be88bbf + 2e294c7 commit 9c0dae1
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 0 deletions.
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

0 comments on commit 9c0dae1

Please sign in to comment.