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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
