Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
Signed-off-by: Dan Webb <dan.webb@damacus.io>
  • Loading branch information
damacus committed Nov 4, 2024
1 parent f700c1e commit d0c6424
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
5 changes: 0 additions & 5 deletions test/cookbooks/test/recipes/client_install.rb
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
# Import PostgreSQL GPG key
execute 'import_pgdg_key' do
command 'rpm --import https://download.postgresql.org/pub/repos/yum/keys/RPM-GPG-KEY-PGDG'
not_if 'rpm -q gpg-pubkey-08b40d20-*'
end

include_recipe 'test::dokken'

postgresql_install 'postgresql' do
Expand Down
12 changes: 10 additions & 2 deletions test/integration/initdb_locale/controls/default_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,19 @@

postgres_access = postgres_session('postgres', '12345', '127.0.0.1')

describe postgres_access.query('SHOW lc_collate;') do
describe postgres_access.query('SHOW LC_MONETARY;') do
its('output') { should include "#{os.release.to_i < 8 ? 'en_US.utf8' : 'C.UTF-8'}" }
end

describe postgres_access.query('SHOW lc_messages;') do
describe postgres_access.query('SHOW LC_MESSAGES;') do
its('output') { should include "#{os.release.to_i < 8 ? 'en_US.utf8' : 'C.UTF-8'}" }
end

describe postgres_access.query('SHOW LC_NUMERIC;') do
its('output') { should include "#{os.release.to_i < 8 ? 'en_US.utf8' : 'C.UTF-8'}" }
end

describe postgres_access.query('SHOW LC_TIME;') do
its('output') { should include "#{os.release.to_i < 8 ? 'en_US.utf8' : 'C.UTF-8'}" }
end
end

0 comments on commit d0c6424

Please sign in to comment.