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

   ### Summary
   
   Adds the first dedicated unit test suite for `MetricsSourceSettings`, the 
immutable settings that configure a Prometheus-compatible metrics source.
   
   The builder ships Prometheus defaults (3s connect / 10s read timeouts, 
`none` auth) and the query path delegates to the backend type. The tests pin 
the defaults, the full configuration and the path delegation.
   
   ### Changes
   
   - 
`server/src/test/java/org/apache/rocketmq/studio/cluster/metrics/MetricsSourceSettingsTest.java`
     - `builderDefaultsDescribeUntouchedSettings`: defaults for backend, 
timeouts and auth.
     - `allArgsCarryConfiguredSettings`: every field round-trips through the 
builder.
     - `queryPathDelegatesToBackendType`: Prometheus vs Mimir paths.
   
   ### Testing
   
   - `mvn -B test -Dtest=MetricsSourceSettingsTest` passes (3 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