|
30 | 30 | is_expected.to contain_postgresql_psql('Add postgis extension to template_postgis').with({
|
31 | 31 | :db => 'template_postgis',
|
32 | 32 | :command => 'CREATE EXTENSION "postgis"',
|
33 |
| - :unless => "SELECT t.count FROM (SELECT count(extname) FROM pg_extension WHERE extname = 'postgis') as t WHERE t.count = 1", |
34 | 33 | }).that_requires('Postgresql::Server::Database[template_postgis]')
|
35 | 34 | }
|
36 | 35 | end
|
|
58 | 57 | is_expected.to contain_postgresql_psql('Add postgis extension to template_postgis').with({
|
59 | 58 | :db => 'template_postgis',
|
60 | 59 | :command => 'DROP EXTENSION "postgis"',
|
61 |
| - :unless => "SELECT t.count FROM (SELECT count(extname) FROM pg_extension WHERE extname = 'postgis') as t WHERE t.count != 1", |
62 | 60 | }).that_requires('Postgresql::Server::Database[template_postgis]')
|
63 | 61 | }
|
64 | 62 |
|
|
78 | 76 | is_expected.to contain_postgresql_psql('Add postgis extension to template_postgis').with({
|
79 | 77 | :db => 'template_postgis',
|
80 | 78 | :command => 'DROP EXTENSION "postgis"',
|
81 |
| - :unless => "SELECT t.count FROM (SELECT count(extname) FROM pg_extension WHERE extname = 'postgis') as t WHERE t.count != 1", |
82 | 79 | }).that_requires('Postgresql::Server::Database[template_postgis]')
|
83 | 80 | }
|
84 | 81 |
|
|
153 | 150 | is_expected.to contain_postgresql_psql('Add postgis extension to template_postgis2').with({
|
154 | 151 | :db => 'template_postgis2',
|
155 | 152 | :command => 'CREATE EXTENSION "postgis"',
|
156 |
| - :unless => "SELECT t.count FROM (SELECT count(extname) FROM pg_extension WHERE extname = 'postgis') as t WHERE t.count = 1", |
157 | 153 | }).that_requires('Postgresql::Server::Database[template_postgis2]')
|
158 | 154 | }
|
159 | 155 | end
|
|
0 commit comments