-
Notifications
You must be signed in to change notification settings - Fork 59
Added test for sslMode=prefer #43 #90
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
Added test for sslMode=prefer #43 #90
Conversation
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.
The debug messages should be removed, but as they are only in the tests, I'd rather merge this now than have you wait for me again
clientSsl.getConnection(sqlConnectionAsyncResult -> { | ||
context.assertTrue(sqlConnectionAsyncResult.succeeded()); | ||
conn = sqlConnectionAsyncResult.result(); | ||
System.out.println("testPreferSslConfiguration step2"); |
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.
We could get rid of these debug messages I think
conn = sqlConnectionAsyncResult.result(); | ||
System.out.println("testPreferSslConfiguration step2"); | ||
conn.query("SELECT 1", ar -> { | ||
System.out.println("testPreferSslConfiguration callback2"); |
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.
We could get rid of these debug messages I think
clientNoSsl.getConnection(sqlConnectionAsyncResult2 -> { | ||
context.assertTrue(sqlConnectionAsyncResult2.succeeded()); | ||
conn = sqlConnectionAsyncResult2.result(); | ||
System.out.println("testPreferSslConfiguration step3"); |
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.
We could get rid of these debug messages I think
conn = sqlConnectionAsyncResult2.result(); | ||
System.out.println("testPreferSslConfiguration step3"); | ||
conn.query("SELECT 1", ar2 -> { | ||
System.out.println("testPreferSslConfiguration callback4"); |
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.
We could get rid of these debug messages I think
.put("sslMode", "prefer") | ||
); | ||
|
||
System.out.println("testPreferSslConfiguration"); |
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.
We could get rid of these debug messages I think
Add new test case