yyqdbngt opened a new pull request, #3576:
URL: https://github.com/apache/rocketmq-dashboard/pull/3576
### Summary
Adds the first dedicated unit test suite for `OperationAuditConstants`, the
shared vocabulary written into audit rows by services.
The values are part of a stored contract, so accidental renames silently
change what lands in the audit log. The tests lock the exact
operation/resource/result values, their uniqueness and the
operation-to-resource alignment.
### Changes
-
`server/src/test/java/org/apache/rocketmq/studio/audit/OperationAuditConstantsTest.java`
- `topicAndGroupOperationsUseUppercaseSnakeCase` /
`proxyOperationsUseUppercaseSnakeCase`: exact constant values.
- `operationsAreUnique`: the ten operations never collide.
- `resourceTypesCoverTopicGroupAndProxy` /
`resultsCoverSuccessAndFailure`: resource and result vocabularies.
- `operationsAlignWithResourceTypes`: topic operations carry the TOPIC
suffix, reset carries RESET_.
### Testing
- `mvn -B test -Dtest=OperationAuditConstantsTest` passes (6 tests, all
green).
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]