Skip to content

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

Merged

Conversation

Mart-Bogdan
Copy link
Contributor

Add new test case

@Mart-Bogdan
Copy link
Contributor Author

Hello, @Narigo this is additional test for PR #88

Copy link
Contributor

@Narigo Narigo left a 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");
Copy link
Contributor

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");
Copy link
Contributor

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");
Copy link
Contributor

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");
Copy link
Contributor

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");
Copy link
Contributor

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

@Narigo Narigo merged commit ec174c2 into vert-x3:ssl-connection-pr78 Dec 7, 2017
@Narigo Narigo removed the to review label Dec 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants