Skip to content

Remove duplicate MetaStoreManagerFactory mocks #2023

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

Merged

Conversation

XN137
Copy link
Contributor

@XN137 XN137 commented Jul 10, 2025

also rename the field for clarity and consistency

@Override
public Map<String, PrincipalSecretsResult> bootstrapRealms(
Iterable<String> realms, RootCredentialsSet rootCredentialsSet) {
throw new NotImplementedException("Bootstrapping realms is not supported");
Copy link
Contributor Author

@XN137 XN137 Jul 10, 2025

Choose a reason for hiding this comment

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

was throwing this exception the reason why some tests where using createMockMetaStoreManagerFactory() instead of the Mock in the field?

or just left-over code without a particular reason?
sorry in case i am missing something obvious

Copy link
Contributor

Choose a reason for hiding this comment

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

I do not see any test relying on this exception, so removing this piece of code LGTM.

also rename the field for clarity and consistency
@XN137 XN137 force-pushed the duplicate-MetaStoreManagerFactory-mocks branch from 267dd57 to 3279432 Compare July 10, 2025 08:03
@XN137 XN137 marked this pull request as ready for review July 10, 2025 08:04
@github-project-automation github-project-automation bot moved this from PRs In Progress to Ready to merge in Basic Kanban Board Jul 10, 2025
@Override
public Map<String, PrincipalSecretsResult> bootstrapRealms(
Iterable<String> realms, RootCredentialsSet rootCredentialsSet) {
throw new NotImplementedException("Bootstrapping realms is not supported");
Copy link
Contributor

Choose a reason for hiding this comment

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

I do not see any test relying on this exception, so removing this piece of code LGTM.

@eric-maynard eric-maynard merged commit 19f44d8 into apache:main Jul 10, 2025
11 checks passed
@github-project-automation github-project-automation bot moved this from Ready to merge to Done in Basic Kanban Board Jul 10, 2025
@XN137 XN137 deleted the duplicate-MetaStoreManagerFactory-mocks branch July 16, 2025 07:27
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.

4 participants