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 20:50:00 UTC
[PR] [ISSUE-3777][test] Deepen InstanceCapabilityServiceTest with empty capability set, missing provider and explicit vendor routing [rocketmq-dashboard]
yyqdbngt opened a new pull request, #3777:
URL: https://github.com/apache/rocketmq-dashboard/pull/3777
### Motivation
The existing `InstanceCapabilityServiceTest` covers stable-ordered capabilities, the legacy null-vendor default and unknown ids, but the empty-provider set, a registry without a provider for the vendor and the explicit vendor routing remain untested.
### Changes
- `getCapabilitiesShouldReturnEmptyListWhenProviderExposesNoCapabilities`: a provider exposing an empty capability set yields an empty ordered list with the legacy vendor preserved.
- `getCapabilitiesShouldTranslateMissingProviderRegistration`: when no provider is registered for the vendor the registry's 501 is surfaced unchanged.
- `getCapabilitiesShouldAskForExplicitNonNullVendor`: an explicit non-null vendor is forwarded verbatim to the registry (no legacy defaulting) and its capabilities are returned.
### Verification
```
mvn -B test -Dtest=InstanceCapabilityServiceTest
[INFO] Tests run: 6, Failures: 0, Errors: 0, Skipped: 0
[INFO] BUILD SUCCESS
```
--
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] [ISSUE-3777][test] Deepen InstanceCapabilityServiceTest with empty capability set, missing provider and explicit vendor routing [rocketmq-dashboard]
Posted by "lizhimins (via GitHub)" <gi...@apache.org>.
lizhimins closed pull request #3777: [ISSUE-3777][test] Deepen InstanceCapabilityServiceTest with empty capability set, missing provider and explicit vendor routing
URL: https://github.com/apache/rocketmq-dashboard/pull/3777
--
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