Reindent postgresql::database_grant spec
This commit is contained in:
parent
a37eaa053b
commit
6890a56eb7
1 changed files with 12 additions and 8 deletions
|
@ -241,7 +241,7 @@ describe 'install:' do
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
describe 'postgresql::grant' do
|
describe 'postgresql::database_grant' do
|
||||||
it 'should grant access so a user can create in a database' do
|
it 'should grant access so a user can create in a database' do
|
||||||
begin
|
begin
|
||||||
pp = <<-EOS
|
pp = <<-EOS
|
||||||
|
@ -258,8 +258,10 @@ describe 'install:' do
|
||||||
|
|
||||||
postgresql::database_user { $user:
|
postgresql::database_user { $user:
|
||||||
password_hash => postgresql_password($user, $password),
|
password_hash => postgresql_password($user, $password),
|
||||||
require => [ Class['postgresql::server'],
|
require => [
|
||||||
User[$user] ],
|
Class['postgresql::server'],
|
||||||
|
User[$user],
|
||||||
|
],
|
||||||
}
|
}
|
||||||
|
|
||||||
postgresql::database { $db:
|
postgresql::database { $db:
|
||||||
|
@ -270,8 +272,10 @@ describe 'install:' do
|
||||||
privilege => 'CREATE',
|
privilege => 'CREATE',
|
||||||
db => $db,
|
db => $db,
|
||||||
role => $user,
|
role => $user,
|
||||||
require => [ Postgresql::Database[$db],
|
require => [
|
||||||
Postgresql::Database_user[$user] ],
|
Postgresql::Database[$db],
|
||||||
|
Postgresql::Database_user[$user],
|
||||||
|
],
|
||||||
}
|
}
|
||||||
EOS
|
EOS
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue