-
Notifications
You must be signed in to change notification settings - Fork 128
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
regression tests for fixes in release/0.84.1 #308
Conversation
use separate ssl keys for tests
tlsConfig.ClientAuth = tls.NoClientCert | ||
log.Warningln("Skip verifying TLS certificate, use for tests only!") | ||
} | ||
log.Infoln("Loaded tls config") |
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.
log.Infoln("Loaded tls config") | |
log.Infoln("Loaded TLS config") |
😁
decryptor/mysql/response_proxy.go
Outdated
@@ -342,7 +342,8 @@ func (handler *Handler) ProxyClientConnection(errCh chan<- error) { | |||
handler.setQueryHandler(handler.QueryResponseHandler) | |||
break | |||
case CommandStatementClose, CommandStatementSendLongData, CommandStatementReset: | |||
fallthrough | |||
clientLog.Debugln("Close|SendLongData|Reset command") | |||
break |
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.
why break?
great, so many tests now! |
decryptor/mysql/response_proxy.go
Outdated
@@ -342,7 +342,8 @@ func (handler *Handler) ProxyClientConnection(errCh chan<- error) { | |||
handler.setQueryHandler(handler.QueryResponseHandler) | |||
break | |||
case CommandStatementClose, CommandStatementSendLongData, CommandStatementReset: | |||
fallthrough | |||
clientLog.Debugln("Close|SendLongData|Reset command") | |||
break |
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.
break |
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.
yeah, golang doesn't require break
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.
really?
my main concern was about the reason of changing logic – from "fallthrough" to "break"
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.
with fallthrough
it will log that `unknown command with code XX. now it log specific names of commands as it was expected )
Co-Authored-By: Lagovas <[email protected]>
added regression tests for our fix in release/0.84.1 and some refactoring that was needed for it:
tests/docker/*.dockerfile
) for databases with injected tls keys (tests/ssl/*
) to correct use tls connections with all db drivers in integrations testsvar TestOnly = "false"
variable in acra-server that was changed on compile time only for tests