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 12:51:57 UTC
[PR] test(tool): deepen ClusterListToolHandler projection coverage [rocketmq-dashboard]
yyqdbngt opened a new pull request, #3321:
URL: https://github.com/apache/rocketmq-dashboard/pull/3321
## Summary
Extends the existing `ClusterListToolHandlerTest` (2 to 5 tests) to pin down the cluster-list tool projection.
Added cases:
- the tool reports its canonical name `rmq.cluster.list`;
- every cluster is projected in input order (id, type, status passthrough);
- a cluster missing its type or status is rejected with an `IllegalStateException` naming the missing field and the cluster id, rather than emitting a null into the schema-required fields.
## Why
The tool is the read-only cluster inventory for AI/MCP/CLI callers; the multi-row and missing-enum branches had no coverage.
## Testing
`mvn -B test -Dtest=ClusterListToolHandlerTest` — 5/5 pass; checkstyle (validate) clean.
--
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(tool): deepen ClusterListToolHandler projection coverage [rocketmq-dashboard]
Posted by "lizhimins (via GitHub)" <gi...@apache.org>.
lizhimins closed pull request #3321: test(tool): deepen ClusterListToolHandler projection coverage
URL: https://github.com/apache/rocketmq-dashboard/pull/3321
--
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