Skip to content

Add tenant name check in list namespaces function. #7369

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
merged 5 commits into from
Jul 2, 2020
Merged

Add tenant name check in list namespaces function. #7369

merged 5 commits into from
Jul 2, 2020

Conversation

zhanghaou
Copy link
Contributor

fix #7301

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
@zhanghaou
Copy link
Contributor Author

/pulsarbot run-failure-checks

1 similar comment
@zhanghaou
Copy link
Contributor Author

/pulsarbot run-failure-checks

Copy link
Contributor

@codelipenghui codelipenghui left a comment

Choose a reason for hiding this comment

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

The change looks good to me, could you please add some unit tests for the change?

@zhanghaou
Copy link
Contributor Author

@codelipenghui Done.

@zhanghaou
Copy link
Contributor Author

/pulsarbot run-failure-checks

1 similar comment
@zhanghaou
Copy link
Contributor Author

/pulsarbot run-failure-checks

merge from apache pulsar
@codelipenghui
Copy link
Contributor

/pulsarbot run-failure-checks

// check the tenant name is valid
namespaces.getTenantNamespaces(this.testTenant + "/default");
fail("should have failed");
} catch (RestException e) {
Copy link
Contributor

Choose a reason for hiding this comment

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

It's better to catch the specific RestException or check the response code.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

@zhanghaou
Copy link
Contributor Author

/pulsarbot run-failure-checks

1 similar comment
@zhanghaou
Copy link
Contributor Author

/pulsarbot run-failure-checks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[pulsar-admin] weird error on wrong command
3 participants