yyqdbngt opened a new pull request, #3798: URL: https://github.com/apache/rocketmq-dashboard/pull/3798
### Motivation The existing `DataSourceTestDTOTest` proves that credentials never leak through `toString`, but the non-secret fields carried by that same string and the bean-validation contract of the DTO were untested. ### Changes - `toStringShouldStillCarryNonSecretFields`: url, type, auth mode and username remain visible in the debug string while passwords and bearer tokens stay excluded. - `validationShouldRejectMissingUrlAndType`: a bare request reports both `url is required` and `type is required`. - `validationShouldAcceptCompleteRequest`: a request with url and type passes validation cleanly. ### Verification ``` mvn -B test -Dtest=DataSourceTestDTOTest [INFO] Tests run: 4, Failures: 0, Errors: 0, Skipped: 0 [INFO] 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]
