|
27 | 27 |
|
28 | 28 | context "with mandatory arguments only" do
|
29 | 29 | it {
|
30 |
| - is_expected.to contain_postgresql_psql('Add postgis extension to template_postgis').with({ |
| 30 | + is_expected.to contain_postgresql_psql('template_postgis: CREATE EXTENSION "postgis"').with({ |
31 | 31 | :db => 'template_postgis',
|
32 | 32 | :command => 'CREATE EXTENSION "postgis"',
|
33 | 33 | }).that_requires('Postgresql::Server::Database[template_postgis]')
|
|
43 | 43 | is_expected.to contain_package('postgis').with({
|
44 | 44 | :ensure => 'present',
|
45 | 45 | :name => 'postgis',
|
46 |
| - }).that_comes_before('Postgresql_psql[Add postgis extension to template_postgis]') |
| 46 | + }).that_comes_before('Postgresql_psql[template_postgis: CREATE EXTENSION "postgis"]') |
47 | 47 | }
|
48 | 48 | end
|
49 | 49 |
|
|
54 | 54 | }) }
|
55 | 55 |
|
56 | 56 | it {
|
57 |
| - is_expected.to contain_postgresql_psql('Add postgis extension to template_postgis').with({ |
| 57 | + is_expected.to contain_postgresql_psql('template_postgis: DROP EXTENSION "postgis"').with({ |
58 | 58 | :db => 'template_postgis',
|
59 | 59 | :command => 'DROP EXTENSION "postgis"',
|
60 | 60 | }).that_requires('Postgresql::Server::Database[template_postgis]')
|
|
73 | 73 | }) }
|
74 | 74 |
|
75 | 75 | it {
|
76 |
| - is_expected.to contain_postgresql_psql('Add postgis extension to template_postgis').with({ |
| 76 | + is_expected.to contain_postgresql_psql('template_postgis: DROP EXTENSION "postgis"').with({ |
77 | 77 | :db => 'template_postgis',
|
78 | 78 | :command => 'DROP EXTENSION "postgis"',
|
79 | 79 | }).that_requires('Postgresql::Server::Database[template_postgis]')
|
|
83 | 83 | is_expected.to contain_package('postgis').with({
|
84 | 84 | :ensure => 'present',
|
85 | 85 | :name => 'postgis',
|
86 |
| - }).that_requires('Postgresql_psql[Add postgis extension to template_postgis]') |
| 86 | + }).that_requires('Postgresql_psql[template_postgis: DROP EXTENSION "postgis"]') |
87 | 87 | }
|
88 | 88 | end
|
89 | 89 | end
|
|
147 | 147 |
|
148 | 148 | context "with mandatory arguments only" do
|
149 | 149 | it {
|
150 |
| - is_expected.to contain_postgresql_psql('Add postgis extension to template_postgis2').with({ |
| 150 | + is_expected.to contain_postgresql_psql('template_postgis2: CREATE EXTENSION "postgis"').with({ |
151 | 151 | :db => 'template_postgis2',
|
152 | 152 | :command => 'CREATE EXTENSION "postgis"',
|
153 | 153 | }).that_requires('Postgresql::Server::Database[template_postgis2]')
|
|
0 commit comments