-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
pgwire: convert a few more auth tests to datadriven input #43725
Conversation
128495b
to
35c43b9
Compare
|
||
# Verify auth fails without password. | ||
# | ||
# Also verify that the username gets normalized: the username |
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.
Do we also need to test here that the non-normalized username (i.e., the one provide initially) also works?
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.
Good idea. Done.
35c43b9
to
aeca380
Compare
TestPGWire, RootUserAuth and TestUserAuth had been converted already. This completes by converting UnicodeUserAuth and also using that to exercise username normalization. The patch also converts TestPGWireNonexistentUser in insecure mode (a test already existed for secure mode). It also makes `connect` tests print out the name of the current db after login, and uses that to replace TestPGWireDBName. Release note: None
TFYR! bors r+ |
aeca380
to
14def93
Compare
43725: pgwire: convert a few more auth tests to datadriven input r=knz a=knz TestPGWire, RootUserAuth and TestUserAuth had been converted already. This completes by converting UnicodeUserAuth and also using that to exercise username normalization. The patch also converts TestPGWireNonexistentUser in insecure mode (a test already existed for secure mode). It also makes `connect` tests print out the name of the current db after login, and uses that to replace TestPGWireDBName. Release note: None Co-authored-by: Raphael 'kena' Poss <[email protected]>
Build succeeded |
(simplifies fixing #31113) |
TestPGWire, RootUserAuth and TestUserAuth had been converted already.
This completes by converting UnicodeUserAuth and also using that to
exercise username normalization.
The patch also converts TestPGWireNonexistentUser in insecure mode (a
test already existed for secure mode).
It also makes
connect
tests print out the name of the current dbafter login, and uses that to replace TestPGWireDBName.
Release note: None