File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 99 $group = $postgresql::server::group
1010 $psql_path = $postgresql::server::psql_path
1111 $port = $postgresql::server::port
12-
12+
1313 # Set the defaults for the postgresql_psql resource
1414 Postgresql_psql {
1515 psql_user => $user ,
2020
2121 case $ensure {
2222 ' present' : {
23- $command = " CREATE EXTENSION ${name} "
23+ $command = " CREATE EXTENSION \" ${name} \" "
2424 $unless_comp = ' ='
2525 $package_require = undef
2626 $package_before = Postgresql_psql[" Add ${title} extension to ${database} " ]
2727 }
2828
2929 ' absent' : {
30- $command = " DROP EXTENSION ${name} "
30+ $command = " DROP EXTENSION \" ${name} \" "
3131 $unless_comp = ' !='
3232 $package_require = Postgresql_psql[" Add ${title} extension to ${database} " ]
3333 $package_before = undef
Original file line number Diff line number Diff line change 2929 it {
3030 is_expected . to contain_postgresql_psql ( 'Add postgis extension to template_postgis' ) . with ( {
3131 :db => 'template_postgis' ,
32- :command => 'CREATE EXTENSION postgis' ,
32+ :command => 'CREATE EXTENSION " postgis" ' ,
3333 :unless => "SELECT t.count FROM (SELECT count(extname) FROM pg_extension WHERE extname = 'postgis') as t WHERE t.count = 1" ,
3434 } ) . that_requires ( 'Postgresql::Server::Database[template_postgis]' )
3535 }
5757 it {
5858 is_expected . to contain_postgresql_psql ( 'Add postgis extension to template_postgis' ) . with ( {
5959 :db => 'template_postgis' ,
60- :command => 'DROP EXTENSION postgis' ,
60+ :command => 'DROP EXTENSION " postgis" ' ,
6161 :unless => "SELECT t.count FROM (SELECT count(extname) FROM pg_extension WHERE extname = 'postgis') as t WHERE t.count != 1" ,
6262 } ) . that_requires ( 'Postgresql::Server::Database[template_postgis]' )
6363 }
7777 it {
7878 is_expected . to contain_postgresql_psql ( 'Add postgis extension to template_postgis' ) . with ( {
7979 :db => 'template_postgis' ,
80- :command => 'DROP EXTENSION postgis' ,
80+ :command => 'DROP EXTENSION " postgis" ' ,
8181 :unless => "SELECT t.count FROM (SELECT count(extname) FROM pg_extension WHERE extname = 'postgis') as t WHERE t.count != 1" ,
8282 } ) . that_requires ( 'Postgresql::Server::Database[template_postgis]' )
8383 }
You can’t perform that action at this time.
0 commit comments