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

multitenant: check query rows result in admin function tests #93225

Merged
merged 1 commit into from
Dec 8, 2022
Merged

multitenant: check query rows result in admin function tests #93225

merged 1 commit into from
Dec 8, 2022

Conversation

ecwall
Copy link
Contributor

@ecwall ecwall commented Dec 7, 2022

Informs CRDB-16746

Some admin functions return error rows in the response instead of an error itself. Update related tests to check these rows.

Release note: None

@ecwall ecwall requested review from knz, rafiss and arulajmani December 7, 2022 22:33
@cockroach-teamcity
Copy link
Member

This change is Reviewable

desc: "ALTER TABLE x EXPERIMENTAL_RELOCATE LEASE",
query: "ALTER TABLE t EXPERIMENTAL_RELOCATE LEASE SELECT 1, 1;",
expectedErrorMessage: errorutil.UnsupportedWithMultiTenancyMessage,
desc: "ALTER RANGE x RELOCATE NONVOTERS",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Also adds NONVOTERS version of VOTERS tests.

},
// TODO(ewall): Set up test to avoid "trying to add a voter to a store that already has a VOTER_FULL" error.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Some tests require additional setup that I will address when working on adding the Class to the related KV AdminRequest.

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, all commit messages.
Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained (waiting on @arulajmani and @rafiss)

Informs CRDB-16746

Some admin functions return error rows in the response instead
of an error itself. Update related tests to check these rows.

Release note: None
@ecwall
Copy link
Contributor Author

ecwall commented Dec 8, 2022

bors r=knz

@craig
Copy link
Contributor

craig bot commented Dec 8, 2022

Build succeeded:

@craig craig bot merged commit eb02796 into cockroachdb:master Dec 8, 2022
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.

3 participants