File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change 44
55describe 'postgresql::server' do
66 let ( :pp ) do
7+ ENV [ 'RSPEC_DEBUG' ] = 'yes'
78 <<-MANIFEST
89 class { 'postgresql::globals':
910 encoding => 'UTF8',
@@ -15,7 +16,14 @@ class { 'postgresql::server': }
1516
1617 it 'with defaults' do
1718 export_locales ( 'en_NG.UTF8' )
18- idempotent_apply ( pp )
19+ idempotent_apply ( pp , debug : true )
20+ puts '-------------------------------'
21+ puts LitmusHelper . instance . run_shell ( 'netstat -lntp' ) . stdout
22+ puts '-------------------------------'
23+ puts LitmusHelper . instance . run_shell ( 'journalctl -u postgresql' ) . stdout
24+ puts '-------------------------------'
25+ puts LitmusHelper . instance . run_shell ( 'systemctl status postgresql*' ) . stdout
26+ puts '-------------------------------'
1927 expect ( port ( 5432 ) ) . to be_listening
2028 expect ( psql ( '--command="\l" postgres' , 'postgres' ) . stdout ) . to match ( %r{List of databases} )
2129 expect ( psql ( '--command="SELECT pg_encoding_to_char(encoding) FROM pg_database WHERE datname=\'template1\'"' ) . stdout ) . to match ( %r{UTF8} )
You can’t perform that action at this time.
0 commit comments