-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Add option to run vtcombo and vttest local cluster with real topo server #9176
Conversation
Signed-off-by: Zhong Ren <zhong@zhongren.me>
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.
Thank you for doing this! I can definitely see how this will be useful. I could put it to good use myself for some consul specific testing :-)
I had a few nits, but all very minor things. Do you think it's worth adding a unit test to be sure this doesn't break down the road?
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.
Looks good overall.
I might be reading this wrong, but I don't see any actual tests exercising the new options. We need at least one.
Signed-off-by: Zhong Ren <zhong@zhongren.me>
Thanks for reviewing folks. Added a unit test using consul external topo, and addressed other feedback. |
cmd, configFilename, serverAddr := test.StartConsul(t, "") | ||
defer func() { | ||
// Alerts command did not run successful | ||
if err := cmd.Process.Kill(); err != nil { |
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.
if we use consul agent -dev
i think we could do consul leave
for a graceful shutdown and don't need to call os.Remove
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.
tried consul leave
and it adds 10 seconds for grace shutdown. keeping process.kill
Signed-off-by: Zhong Ren <zhong@zhongren.me>
looking into test failure |
LGTM |
Thank you for the contribution! |
Signed-off-by: Zhong Ren zhong@zhongren.me
Description
Add option to run vtcombo and vttest local cluster with real topo server
Related Issue(s)
N/A
Checklist
Deployment Notes
N/A