Skip to content

Commit

Permalink
DELETE ME
Browse files Browse the repository at this point in the history
Add status info to help diagnose failures
  • Loading branch information
smortex committed Apr 16, 2024
1 parent d15ac61 commit b2284f1
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion spec/acceptance/utf8_encoding_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

describe 'postgresql::server' do
let(:pp) do
ENV['RSPEC_DEBUG'] = 'yes'
<<-MANIFEST
class { 'postgresql::globals':
encoding => 'UTF8',
Expand All @@ -15,7 +16,14 @@ class { 'postgresql::server': }

it 'with defaults' do
export_locales('en_NG.UTF8')
idempotent_apply(pp)
idempotent_apply(pp, debug: true)
puts '-------------------------------'
puts LitmusHelper.instance.run_shell('ss -lntp').stdout
puts '-------------------------------'
puts LitmusHelper.instance.run_shell('journalctl -u postgresql').stdout
puts '-------------------------------'
puts LitmusHelper.instance.run_shell('systemctl status postgresql*').stdout
puts '-------------------------------'
expect(port(5432)).to be_listening
expect(psql('--command="\l" postgres', 'postgres').stdout).to match(%r{List of databases})
expect(psql('--command="SELECT pg_encoding_to_char(encoding) FROM pg_database WHERE datname=\'template1\'"').stdout).to match(%r{UTF8})
Expand Down

0 comments on commit b2284f1

Please sign in to comment.