Skip to content

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

Merged
rohit-nayak-ps merged 1 commit intovitessio:masterfrom
tinyspeck:am_testutil_multiple_vtctlds
Mar 4, 2021
Merged

[vtadmin/testutil] Add testutil helper to manage the complexity of recursively calling WithTestServer#7601
rohit-nayak-ps merged 1 commit intovitessio:masterfrom
tinyspeck:am_testutil_multiple_vtctlds

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

…ithTestServer

Signed-off-by: Andrew Mason <amason@slack-corp.com>
@ajm188 ajm188 requested review from doeg and rohit-nayak-ps March 4, 2021 03:51
Copy link
Member

@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.

4 participants