Fix table_grant tests
Signed-off-by: Ken Barber <ken@bob.sh>
This commit is contained in:
parent
c8d3ecde14
commit
e5562621ec
1 changed files with 10 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue