diff --git a/spec/acceptance/utf8_encoding_spec.rb b/spec/acceptance/utf8_encoding_spec.rb index a7c9b52497..8f9da462c9 100644 --- a/spec/acceptance/utf8_encoding_spec.rb +++ b/spec/acceptance/utf8_encoding_spec.rb @@ -4,6 +4,7 @@ describe 'postgresql::server' do let(:pp) do + ENV['RSPEC_DEBUG'] = 'yes' <<-MANIFEST class { 'postgresql::globals': encoding => 'UTF8', @@ -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('netstat -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})