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/04 04:30:52 UTC

[PR] test(instance): cover capability resolution and unknown instance 404 [rocketmq-dashboard]

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

   ### Summary
   Add the first unit coverage for the instance capability resolver (`InstanceCapabilityService`):
   
   - an unknown instance id yields the existing 404 `BusinessException`;
   - a known instance resolves its vendor provider and returns the capability list sorted by ordinal (an intentionally unordered provider set is normalized to `TOPIC_MANAGEMENT` → `CONSUMER_GROUP_MANAGEMENT`), with instance id / vendor / access type carried through.
   
   ### Why
   This service builds the capability contract shown on instance pages and had no automated coverage, so provider lookup and ordering regressions went unnoticed.
   
   ### Testing
   - `mvn -f server/pom.xml -Dtest=InstanceCapabilityServiceTest test` passes: 2/2.
   


-- 
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(instance): cover capability resolution and unknown instance 404 [rocketmq-dashboard]

Posted by "yyqdbngt (via GitHub)" <gi...@apache.org>.
yyqdbngt closed pull request #3101: test(instance): cover capability resolution and unknown instance 404
URL: https://github.com/apache/rocketmq-dashboard/pull/3101


-- 
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