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

server: minor improvement around TestTenantInterface #107086

Merged
merged 4 commits into from
Jul 18, 2023

Conversation

yuzefovich
Copy link
Member

Addresses: #76378.
Fixes: #106903.

This mostly adds `serverutils.` prefix to the interface names which
allows for easier navigation (at least in the GoLand).

Release note: None
Tracer method is already in TestTenantInterface.

Release note: None
Previously, if `TestServer.Start` returned an error while the default
test tenant wasn't disabled, we'd incorrectly consider that we had
started the default test tenant. This, then, could lead to some problems
(e.g. trying to access non-existing tenant which could lead to a crash).
This is fixed by checking whether we have test tenants.

Release note: None
We simply needed to use the ExecutorConfig of the test tenant if it was
started.

Release note: None
@yuzefovich yuzefovich requested review from knz, stevendanna and a team July 18, 2023 16:45
@yuzefovich yuzefovich requested review from a team as code owners July 18, 2023 16:45
@yuzefovich yuzefovich requested review from smg260 and renatolabs and removed request for a team July 18, 2023 16:45
@cockroach-teamcity
Copy link
Member

This change is Reviewable

Copy link
Contributor

@knz knz left a comment

Choose a reason for hiding this comment

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

Reviewed 1 of 1 files at r1, 3 of 3 files at r2, 1 of 1 files at r3, 1 of 1 files at r4, all commit messages.
Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained (waiting on @renatolabs, @smg260, and @stevendanna)

@yuzefovich
Copy link
Member Author

TFTR!

bors r+

@craig
Copy link
Contributor

craig bot commented Jul 18, 2023

Build succeeded:

@craig craig bot merged commit 6f42039 into cockroachdb:master Jul 18, 2023
2 checks passed
@yuzefovich yuzefovich deleted the tt-interface-short branch July 18, 2023 18:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

serverccl: TestVerifyPassword/some_admin_with_empty_password_should_fail fails with secondary tenants
3 participants