[vtadmin-api] Add cluster field to vtadmin-api's /api/gates response#7425
Merged
rohit-nayak-ps merged 1 commit intovitessio:masterfrom Feb 1, 2021
Merged
Conversation
Signed-off-by: Sara Bee <855595+doeg@users.noreply.github.com>
doeg
commented
Feb 1, 2021
|
|
||
| fakedisco1.AddTaggedGates(nil, cluster1Gates...) | ||
|
|
||
| expectedCluster1Gates := []*vtadminpb.VTGate{ |
Contributor
Author
There was a problem hiding this comment.
I defined these expectedCluster*Gates slices rather than adding the Cluster field to the existing cluster*Gates slice. Prior, when I added the Cluster to a cluster*Gates slice, fakedisco added them as-is, meaning the test passed without exercising the new codepath.
ajm188
approved these changes
Feb 1, 2021
cluster field to vtadmin-api's /api/gates responsecluster field to vtadmin-api's /api/gates response
This file contains hidden or 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
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.
Signed-off-by: Sara Bee 855595+doeg@users.noreply.github.com
Description
Updates vtadmin-api's
/api/gatesendpoint to return cluster information.Previously:
Currently:
Related Issue(s)
N/A
Checklist
Deployment Notes
N/A
Impacted Areas in Vitess
Components that this PR will affect: