Fix table_grant tests

Signed-off-by: Ken Barber <ken@bob.sh>
This commit is contained in:
Ken Barber 2013-09-18 23:11:10 +01:00
parent c8d3ecde14
commit e5562621ec

View file

@ -12,7 +12,7 @@ describe 'postgresql::server::table_grant:' do
begin
pp = <<-EOS.unindent
$db = 'table_grant'
$user = 'psql_table_tester'
$user = 'psql_grant_tester'
$password = 'psql_table_pw'
class { 'postgresql::server': }
@ -28,6 +28,15 @@ describe 'postgresql::server::table_grant:' do
postgresql::server::database { $db: }
# Create a rule for the user
postgresql::server::pg_hba_rule { "allow ${user}":
type => 'local',
database => $db,
user => $user,
auth_method => 'ident',
order => 1,
}
postgresql_psql { 'Create testing table':
command => 'CREATE TABLE "test_table" (field integer NOT NULL)',
db => $db,