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

   ### Motivation
   
   The existing `CloudCredentialControllerTest` only checks the no-store header 
of the secrets reveal endpoint. The list filters, the create endpoint's 
missing-body guard and its delegation path were untested.
   
   ### Changes
   
   - `listCredentialsShouldPassFiltersAndDefaults`: vendor/search parameters 
reach `listMasked` with bounded page defaults and return the masked page.
   - `createCredentialShouldRejectMissingBody`: an absent create body is a 400 
before any service interaction.
   - `createCredentialShouldDelegateWithParsedVendor`: a full create payload is 
validated, its vendor normalised and delegated to `credentialService.create`.
   
   ### Verification
   
   ```
   mvn -B test -Dtest=CloudCredentialControllerTest
   [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]

Reply via email to