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

   ### Summary
   
   Adds the first dedicated unit test suite for `MetricsBackendType`, the 
metrics backend vocabulary whose `fromProviderType` lookup drives 
`MetricsSourceFactory`.
   
   The lookup normalizes provider strings (trim, separator stripping, 
upper-casing), accepts a Victoria alias and falls back to Prometheus for null 
or unknown input. The tests pin the lookup, the fallbacks, the query path 
metadata and id uniqueness.
   
   ### Changes
   
   - 
`server/src/test/java/org/apache/rocketmq/studio/cluster/metrics/MetricsBackendTypeTest.java`
     - Lookup: exact provider round trips, separator/case normalization, 
Victoria alias, null and unknown fallbacks.
     - Metadata: Prometheus/Victoria/Mimir query paths and instant query paths.
     - `providerTypesAreUniqueAcrossBackends` / 
`queryPathsStayDistinctWhereBackendsDiffer`: contract guards.
   
   ### Testing
   
   - `mvn -B test -Dtest=MetricsBackendTypeTest` passes (11 tests, all green).


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