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

   ### Motivation
   
   The existing `CreateCloudCredentialDTOTest` only proves locale-independent 
vendor parsing for `aliyun`. The remaining vendor cases, the secret-safe 
`toString`, the bean-validation contract and the `toCloudCredentialVO` mapping 
were untested.
   
   ### Changes
   
   - `parseVendorShouldNormalizeAndReturnNullForUnknown`: whitespace-padded 
`tencent` normalises to `TENCENT`, while unknown, null and blank values degrade 
to null.
   - `toStringShouldNotExposeCredentialSecrets`: the debug string carries the 
name but excludes access and secret keys via `@ToString.Exclude`.
   - `validationShouldRequireAllCredentialFields`: a bare request reports name, 
vendor, accessKey and secretKey as required.
   - `toCloudCredentialVOShouldCopyFieldsAndParseVendor`: the entity copy maps 
every field and normalises the vendor.
   
   ### Verification
   
   ```
   mvn -B test -Dtest=CreateCloudCredentialDTOTest
   [INFO] Tests run: 5, 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]

Reply via email to