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

   ## Summary
   
   Extends the existing `AlertRuleTransferDTOTest` (1 to 3 tests) to pin down 
the rule transfer/import payload validation.
   
   Added cases:
   - a transfer missing version, domain, or carrying an empty rule list is 
rejected with the respective `version is required`, `domain is required`, and 
`rules must not be empty` violations (bean validation);
   - the transfer format version constant is pinned to 1.
   
   ## Why
   
   The DTO gates alert rule import payloads; only the null-rule-entry violation 
was covered before.
   
   ## Testing
   
   `mvn -B test -Dtest=AlertRuleTransferDTOTest` — 3/3 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]

Reply via email to