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
|
||||
|
||||
describe 'postgresql::grant' do
|
||||
describe 'postgresql::database_grant' do
|
||||
it 'should grant access so a user can create in a database' do
|
||||
begin
|
||||
pp = <<-EOS
|
||||
|
@ -258,8 +258,10 @@ describe 'install:' do
|
|||
|
||||
postgresql::database_user { $user:
|
||||
password_hash => postgresql_password($user, $password),
|
||||
require => [ Class['postgresql::server'],
|
||||
User[$user] ],
|
||||
require => [
|
||||
Class['postgresql::server'],
|
||||
User[$user],
|
||||
],
|
||||
}
|
||||
|
||||
postgresql::database { $db:
|
||||
|
@ -267,11 +269,13 @@ describe 'install:' do
|
|||
}
|
||||
|
||||
postgresql::database_grant { 'grant create test':
|
||||
privilege => 'CREATE',
|
||||
db => $db,
|
||||
role => $user,
|
||||
require => [ Postgresql::Database[$db],
|
||||
Postgresql::Database_user[$user] ],
|
||||
privilege => 'CREATE',
|
||||
db => $db,
|
||||
role => $user,
|
||||
require => [
|
||||
Postgresql::Database[$db],
|
||||
Postgresql::Database_user[$user],
|
||||
],
|
||||
}
|
||||
EOS
|
||||
|
||||
|
|
Loading…
Reference in a new issue