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

[vtadmin/testutil] Add testutil helper to manage the complexity of recursively calling WithTestServer #7601

Merged

Conversation

ajm188
Copy link
Contributor

@ajm188 ajm188 commented Mar 4, 2021

Description

This is a test-code–only change for VtctldServer and VTAdmin to make these recursive test server setups a little nicer to write, and to make doing table-driven tests on arbitrary numbers of vtctlds manageable.

I also added some reuse of a background context to these tests while I was there.

Checklist

  • Should this PR be backported? No
  • Tests were added or are not required
  • Documentation was added or is not required

Deployment Notes

Impacted Areas in Vitess

Components that this PR will affect:

  • Query Serving
  • VReplication
  • Cluster Management
  • Build/CI
  • VTAdmin

@ajm188 ajm188 requested review from doeg and rohit-nayak-ps March 4, 2021 03:51
Copy link
Contributor

@rohit-nayak-ps rohit-nayak-ps left a comment

Choose a reason for hiding this comment

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

lgtm

@rohit-nayak-ps rohit-nayak-ps merged commit 49b29d1 into vitessio:master Mar 4, 2021
@askdba askdba added the Component: VTAdmin VTadmin interface label Mar 4, 2021
@askdba askdba added this to the v10.0 milestone Mar 4, 2021
@ajm188 ajm188 deleted the am_testutil_multiple_vtctlds branch March 4, 2021 16:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: VTAdmin VTadmin interface
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants