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

   ## Summary
   
   Adds `CapabilityResolverTest`, a first unit test for `CapabilityResolver` 
(the resolver that derives, from a cluster type, the capability set driving 
which AI tools are offered). `ClusterService` is mocked.
   
   Coverage:
   - capability sets for every cluster type: `V4_DIRECT` → `REMOTING, 
ROCKETMQ_4`; `V5_PROXY_LOCAL` → `ACL_V2, GRPC, LITE_TOPIC, LOCAL_PROXY, POP, 
REMOTING, ROCKETMQ_5`; `V5_PROXY_CLUSTER` → `ACL_V2, CLUSTER_PROXY, GRPC, 
LITE_TOPIC, POP, REMOTING, ROCKETMQ_5`;
   - resolution through a cluster id delegates to `ClusterService#getCluster`;
   - a cluster with no resolvable type is rejected with a `BusinessException` 
(code 400) instead of silently narrowing the tool surface.
   
   ## Why
   
   Tool availability is gated on these capability sets; the mapping had no 
direct test.
   
   ## Testing
   
   `mvn -B test -Dtest=CapabilityResolverTest` — 3/3 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