Navigation Menu

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

Add tenant name check in list namespaces function. #7369

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

@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

@sijie sijie merged commit 2b94d02 into apache:master Jul 2, 2020
codelipenghui pushed a commit to streamnative/pulsar-archived that referenced this pull request Jul 14, 2020
huangdx0726 pushed a commit to huangdx0726/pulsar that referenced this pull request Aug 24, 2020
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