-
-
Notifications
You must be signed in to change notification settings - Fork 174
fix: update pgbouncer.get_auth (INFRA-1530) #1554
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
03f2d7d
to
a4be80b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@samrose @kangmingtay We need pgbouncer tests to ensure a regression doesn't happen.
They should be similar to the ones auth.out has. Namely:
- tests that cover the pgbouncer schema: tables with owners, functions with owners
- tests that cover the privileges roles have on the pgbouncer db objects
Just noted there's a test for the get_auth
function:
postgres/nix/tests/expected/security.out
Line 14 in 61ff753
pgbouncer | get_auth |
But it doesn't cover the owner
, that needs to be added.
How urgent is this? I might be able to help with the tests here if there's time. |
f85a38e
to
25d23b7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work! 💯
Those testinfra CI jobs are flaky, I suggest just rerunning them manually and see if they pass.
What kind of change does this PR introduce?
pgbouncer.get_auth
definitionWhat is the current behavior?
Please link any relevant issues here.
What is the new behavior?
Feel free to include screenshots if it includes visual changes.
Additional context
Add any other context or screenshots.