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

   ### Motivation
   
   The existing `AlertRuleTransferDTOTest` only rejects null rule entries. The 
remaining bean-validation contract of the import envelope — required 
version/domain, non-empty rule list and nested rule validation — was untested.
   
   ### Changes
   
   - `rejectsMissingVersionDomainAndRules`: a bare transfer document reports 
`version is required`, `domain is required` and `rules must not be empty`.
   - `rejectsEmptyRulesList`: an empty rule list is rejected even when the 
envelope fields are present.
   - `acceptsCompleteTransferDocument`: a fully populated document passes 
validation cleanly.
   - `propagatesValidationOfNestedRules`: an invalid nested rule surfaces its 
own `name is required` violation through the envelope.
   
   ### Verification
   
   ```
   mvn -B test -Dtest=AlertRuleTransferDTOTest
   [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