yyqdbngt opened a new pull request, #3358: URL: https://github.com/apache/rocketmq-dashboard/pull/3358
## Summary Extends the existing `DataSourceDTOTest` (3 to 5 tests) to pin down the data-source payload validation. Added cases: - unsupported `type` and `auth` values are rejected with their dedicated messages, and blank `name`/`url` produce `name is required`/`url is required`; - `toDataSourceVO` trims the auth value and falls back to `Prometheus` for an unknown type (the bean pattern is a validation-layer guard only). ## Why The DTO gates data-source registration; only the instance-binding and canonicalization branches were covered before. ## Testing `mvn -B test -Dtest=DataSourceDTOTest` — 5/5 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]
