Reindent postgresql::database_grant spec

This commit is contained in:
Hunter Haugen 2013-07-16 12:32:33 -07:00
parent a37eaa053b
commit 6890a56eb7

View file

@ -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