File tree Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 8383 default => undef ,
8484 }
8585 $globals_version = pick($version , $default_version , ' unknown' )
86- if ($globals_version == ' unknown' ) {
87- fail(' No preferred version defined or automatically detected.' )
88- }
8986
9087 # Setup of the repo only makes sense globally, so we are doing this here.
9188 if ($manage_package_repo ) {
Original file line number Diff line number Diff line change 168168 $pg_hba_conf_defaults = pick($pg_hba_conf_defaults , true )
169169 $postgresql_conf_path = pick($postgresql_conf_path , " ${confdir} /postgresql.conf" )
170170 $default_database = pick($default_database , ' postgres' )
171+
172+ if ($version == ' unknown' ) {
173+ fail(' No preferred version defined or automatically detected.' )
174+ }
171175}
Original file line number Diff line number Diff line change 55 pp = <<-EOS
66 class { 'postgresql::client': }
77 EOS
8- expect ( apply_manifest ( pp , :expect_failures => true ) . stderr ) . to match ( /No preferred version defined or automatically detected /i )
8+ expect ( apply_manifest ( pp , :expect_failures => true ) . stderr ) . to match ( /does not provide defaults for osfamily /i )
99 end
1010 it 'should fail for server' do
1111 pp = <<-EOS
1212 class { 'postgresql::server': }
1313 EOS
14- expect ( apply_manifest ( pp , :expect_failures => true ) . stderr ) . to match ( /No preferred version defined or automatically detected /i )
14+ expect ( apply_manifest ( pp , :expect_failures => true ) . stderr ) . to match ( /does not provide defaults for osfamily /i )
1515 end
1616end
You can’t perform that action at this time.
0 commit comments