Skip to content
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

Don't use SSL when connecting to JDBC containers #561

Merged
merged 4 commits into from
Jan 28, 2018

Conversation

iNikem
Copy link
Contributor

@iNikem iNikem commented Jan 28, 2018

Fixes #374 and removes annoying warnings that are just pure noise during tests.

Nikita Salnikov-Tarnovski added 2 commits January 28, 2018 14:56
@iNikem
Copy link
Contributor Author

iNikem commented Jan 28, 2018

I could not think of any way to automatically test it. So just made manual verifications, that warnings are now gone.

@iNikem iNikem changed the title Don't use SSL when connecting to MySQL containers Don't use SSL when connecting to JDBC containers Jan 28, 2018
@@ -147,6 +147,11 @@ public Connection createConnection(String queryString) throws SQLException {
}
}

private String disableSSL(String connectionString){
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd prefer something like convertToDisabledSslConnectionString or appendDisableSslConfig, since disableSSL sounds like a state changing method.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make sense. Done.

@kiview
Copy link
Member

kiview commented Jan 28, 2018

LGTM, thanks 🙂

@rnorth rnorth merged commit 0e760f9 into testcontainers:master Jan 28, 2018
@rnorth
Copy link
Member

rnorth commented Jan 28, 2018

Thanks for this @iNikem !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants