You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rocketmq.apache.org by "yyqdbngt (via GitHub)" <gi...@apache.org> on 2026/09/05 16:23:33 UTC
[PR] test: add first coverage for AlertRuleListToolHandler delegation and projection [rocketmq-dashboard]
yyqdbngt opened a new pull request, #3458:
URL: https://github.com/apache/rocketmq-dashboard/pull/3458
### Summary
`AlertRuleListToolHandler` lists alert rules through the alert service and projects rows into schema-safe maps. It had no tests.
### Changes
- Delegation forwards search/enabled filters and paging (defaults 1/20 when absent)
- A fully populated rule projects every field (id, name, metric, operator, threshold, channels, enabled)
- Missing names and metrics are rejected with descriptive messages
- Absent optional fields project as blank strings and empty channels
- The handler registers under `rmq.alert.rule.list`
### Testing
`mvn test -Dtest=AlertRuleListToolHandlerTest` passes: 5 tests, 0 failures (first test for this class).
--
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: commits-unsubscribe@rocketmq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] test: add first coverage for AlertRuleListToolHandler delegation and projection [rocketmq-dashboard]
Posted by "lizhimins (via GitHub)" <gi...@apache.org>.
lizhimins closed pull request #3458: test: add first coverage for AlertRuleListToolHandler delegation and projection
URL: https://github.com/apache/rocketmq-dashboard/pull/3458
--
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: commits-unsubscribe@rocketmq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org