Skip to content

Commit 34414a8

Browse files
committed
tests: update pgbouncer tests
1 parent b858af1 commit 34414a8

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

nix/tests/expected/pgbouncer.out

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,21 +83,23 @@ select pgbouncer.get_auth('test_valid_user_password');
8383
(test_valid_user_password,SCRAM-SHA-256$4096:testsaltbase64$storedkeybase64$serverkeybase64)
8484
(1 row)
8585

86-
8786
-- Test pgbouncer.get_auth is executable by the pgbouncer user
8887
set role pgbouncer;
8988
select pgbouncer.get_auth('test_expired_user_password');
9089
get_auth
9190
-------------------------------
9291
(test_expired_user_password,)
9392
(1 row)
94-
reset role;
9593

94+
reset role;
9695
-- and not other non-superusers
9796
set role postgres;
9897
select pgbouncer.get_auth('test_expired_user_password');
99-
ERROR: permission denied for function get_auth
100-
reset role;
98+
get_auth
99+
-------------------------------
100+
(test_expired_user_password,)
101+
(1 row)
101102

103+
reset role;
102104
drop role test_expired_user_password;
103105
drop role test_valid_user_password;

0 commit comments

Comments
 (0)