-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[improve][test] Add topic operation checker for topic API #22468
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
[improve][test] Add topic operation checker for topic API #22468
Conversation
043ba77 to
2f437e0
Compare
Please provide more context. What is "checker topic operation" ? |
@lhotari I added some context in the PR description |
@coderzc Thanks. Unfortunately, this leaves many open questions.
A representative example could clarify what this all means. |
|
@lhotari Let me use an example to explain why this PR is needed. Such as for Lines 560 to 595 in 6de711d
allowTopicOperationAsync method is SKIP instead of other operation (such as CONSUME). In order to avoid code regression, I added an operation check to ensure API verified topic operation is expected.
|
Motivation
Currently, the permission test of topic API only verifies the AuthAction but does not verify whether the topic operation meets expectations. This is a guarantee for other authorizationProvider implementations.
Modifications
Add checker topic operation for topic API
Verifying this change
(Please pick either of the following options)
This change is a trivial rework / code cleanup without any test coverage.
(or)
This change is already covered by existing tests, such as (please describe tests).
(or)
This change added tests and can be verified as follows:
(example:)
Does this pull request potentially affect one of the following parts:
If the box was checked, please highlight the changes
Documentation
docdoc-requireddoc-not-neededdoc-completeMatching PR in forked repository
PR in forked repository: