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

mysql tls support #140

Merged
merged 11 commits into from
Apr 2, 2018
Merged

mysql tls support #140

merged 11 commits into from
Apr 2, 2018

Conversation

Lagovas
Copy link
Collaborator

@Lagovas Lagovas commented Apr 2, 2018

No description provided.

@Lagovas Lagovas requested review from vixentael and mozhmike April 2, 2018 09:39
if err != nil {
log.WithError(err).WithField(logging.FieldKeyEventCode, logging.EventCodeErrorTransportConfiguration).
Errorln("Configuration error: can't get config for TLS")
os.Exit(1)
}
// need for testing with mysql docker container that always generate new certificates
if Test == TEST_MODE {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Won't it be better to rename Test into SkipVerifyingCertificated?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

thought to name it more common to use in future tests if need

Copy link
Collaborator

Choose a reason for hiding this comment

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

what about 'IsRunningTest'? 'TestOnly'?

Copy link
Collaborator

Choose a reason for hiding this comment

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

by the way, why do you check
if Test == TEST_MODE

instead of if Test == True?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

on compile time we can change only string values

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

will rename to TestOnly

@Lagovas Lagovas merged commit 0cf77bb into cossacklabs:master Apr 2, 2018
@vixentael vixentael added the core label Apr 2, 2018
@Lagovas Lagovas deleted the lagovas/mysql-tls branch April 3, 2018 11:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants