We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9c2399b commit a246e58Copy full SHA for a246e58
manifests/server/db.pp
@@ -29,6 +29,7 @@
29
if ! defined(Postgresql::Server::Role[$user]) {
30
postgresql::server::role { $user:
31
password_hash => $password,
32
+ before => Postgresql::Server::Database[$dbname],
33
}
34
35
spec/unit/defines/server/db_spec.rb
@@ -33,7 +33,7 @@
it { is_expected.to contain_postgresql__server__db('test') }
it { is_expected.to contain_postgresql__server__database('test').with_owner('tester') }
36
- it { is_expected.to contain_postgresql__server__role('test') }
+ it { is_expected.to contain_postgresql__server__role('test').that_comes_before('Postgresql::Server::Database[test]') }
37
it { is_expected.to contain_postgresql__server__database_grant('GRANT test - ALL - test') }
38
39
end
0 commit comments