forked from vitessio/vitess
-
Notifications
You must be signed in to change notification settings - Fork 3
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
Vtgateproxy E2E tests #364
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rjlaine
force-pushed
the
vtgateproxy-e2e-test
branch
from
May 22, 2024 01:41
1e60723
to
32faf12
Compare
Signed-off-by: Riley Laine <[email protected]>
Signed-off-by: Riley Laine <[email protected]>
Signed-off-by: Riley Laine <[email protected]>
Signed-off-by: Riley Laine <[email protected]>
Signed-off-by: Riley Laine <[email protected]>
rjlaine
force-pushed
the
vtgateproxy-e2e-test
branch
from
May 22, 2024 18:29
32faf12
to
0ea874f
Compare
rjlaine
commented
May 23, 2024
@@ -317,7 +330,7 @@ func (b *JSONGateResolverBuilder) GetPools() []string { | |||
return pools | |||
} | |||
|
|||
func (b *JSONGateResolverBuilder) GetTargets(poolType string) []targetHost { | |||
func (b *JSONGateResolverBuilder) getTargets(poolType string) []targetHost { |
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.
Made private because its return type is private
henryr
approved these changes
May 31, 2024
dedelala
pushed a commit
that referenced
this pull request
Jul 30, 2024
* Add end to end tests for vtgateproxy * Fix linter warnings and unhandled errors --------- Signed-off-by: Riley Laine <[email protected]> Signed-off-by: Esme Lamb <[email protected]>
dedelala
pushed a commit
that referenced
this pull request
Nov 12, 2024
* Add end to end tests for vtgateproxy * Fix linter warnings and unhandled errors --------- Signed-off-by: Riley Laine <[email protected]> Signed-off-by: Esme Lamb <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Add end to end tests for vtgateproxy.
Scenarios Tested
Running tests
You can run the tests locally as follows:
. dev.env
make tools
make build
go test -v ./go/test/endtoend/vtgateproxytest/ -run=TestVtgateProxyVtgateFailureFirstReady --logtostderr=1
Outstanding changes
When we're ready to run tests in CI/CD, we'll want to add their configuration to
./test/config.json
Other changes
Several references to global variables were replaced with local type attributes to facilitate testing.
Cases where errors were silently swallowed and not returned were fixed, so that errors are returned or logged in all cases.
Linter errors were also addressed.
The go mysql driver was updated to a newer version which supports connection attributes for pool routing in the default mysql driver client.