yyqdbngt opened a new pull request, #3904: URL: https://github.com/apache/rocketmq-dashboard/pull/3904
### Motivation The `DataSourceDTO` tests covered type canonicalization, blank bindings, and null instance ids, but the bean-validation rules (required name/type/url, supported type and auth patterns) were never asserted. This PR grows the suite from 3 to 9 cases. ### Changes - Auth mode is trimmed into the VO and common aliases normalize (`thanos` → `Thanos`, `victoria_metrics` → `VictoriaMetrics`). - Missing name, blank type, and missing url each produce their backend message. - Unsupported type (`influxdb`) and unsupported auth (`client certificate`) values are rejected with their pattern messages. - Every supported auth mode (`none`, `basic auth`, `bearer token`) validates cleanly. ### Verification - `mvn -B test -Dtest=DataSourceDTOTest`: 9/9 passed, 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]
