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

   ## Summary
   
   Adds `MetricsSourceSettingsTest`, a first unit test for the resolved 
connection settings shared by every Prometheus-compatible metrics backend.
   
   Coverage:
   - builder defaults when fields are omitted: `PROMETHEUS` backend, 3s connect 
timeout, 10s read timeout, `none` auth type;
   - the backend-specific query path that distinguishes sources at query time 
(Prometheus/Thanos `/api/v1/query_range`, Mimir 
`/prometheus/api/v1/query_range`, VictoriaMetrics 
`/select/0/prometheus/api/v1/query_range`);
   - explicit values (backend, base URL, timeouts, bearer auth) are carried 
through and drive `getQueryPath()`.
   
   ## Why
   
   `MetricsSourceFactory` builds these settings for every configured data 
source; the defaults and the path delegation had no direct test.
   
   ## Testing
   
   `mvn -B test -Dtest=MetricsSourceSettingsTest` — 3/3 pass; checkstyle 
(validate) clean.


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