yyqdbngt opened a new pull request, #3329:
URL: https://github.com/apache/rocketmq-dashboard/pull/3329

   ## Summary
   
   Adds `ConsumerGroupListToolHandlerTest`, a first unit test for the 
`rmq.group.list` list-style AI tool handler. `MetadataService` is mocked.
   
   Coverage:
   - the tool reports its canonical name `rmq.group.list`;
   - a successful execution delegates with cluster/search and the page window, 
and projects each group row (name, cluster id, enum names for subscription 
mode/consume type, instance count, lag, retry max, subscribed topics) into the 
paged envelope;
   - absent optional filters and paging inputs default to null/1/20, and the 
subscribed-topic list is defensively copied (source mutation does not leak into 
the output);
   - a group missing a required projection field (`subscriptionMode`) is 
rejected with an `IllegalStateException` naming the field.
   
   ## Why
   
   The tool exposes the consumer-group inventory to AI/MCP/CLI callers; it had 
no direct test while the topic-list sibling was covered.
   
   ## Testing
   
   `mvn -B test -Dtest=ConsumerGroupListToolHandlerTest` — 4/4 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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to