yyqdbngt opened a new pull request, #3585:
URL: https://github.com/apache/rocketmq-dashboard/pull/3585
### Summary
Deepens `ClusterAlertRuleControllerTest` with the delete and bulk endpoints
that were previously uncovered, verifying each stays pinned to the CLUSTER
domain.
### Changes
-
`server/src/test/java/org/apache/rocketmq/studio/ops/alert/ClusterAlertRuleControllerTest.java`
- `deleteRuleShouldDelegateWithClusterDomain`: POST /delete routes the id
through the CLUSTER-scoped delete.
- `bulkToggleShouldDelegateWithClusterDomain`: POST /bulk-toggle carries
ids and the enabled flag into the CLUSTER-scoped bulk toggle.
- `bulkDeleteShouldDelegateWithClusterDomain`: POST /bulk-delete carries
the id list into the CLUSTER-scoped bulk delete.
Suite grows from 6 to 9 tests.
### Testing
- `mvn -B test -Dtest=ClusterAlertRuleControllerTest` passes (9 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]