yyqdbngt opened a new pull request, #3913: URL: https://github.com/apache/rocketmq-dashboard/pull/3913
### Motivation The alert rule request DTO tests covered channels, composite durations, channel normalization, and metric trimming, but the remaining validation rules and the VO operational defaults were unasserted. This PR grows the suite from 4 to 9 cases. ### Changes - A missing name is required. - Invalid operator, aggregation, and severity values are rejected with their messages. - Malformed duration, reminder interval, and an over-4000-char template are rejected. - Negative window seconds and zero consecutive samples are rejected. - `toAlertRuleVO` fills the operational defaults (`LAST`, 0 window seconds, 1 consecutive sample, `30m` reminder) and keeps a null channel list null. ### Verification - `mvn -B test -Dtest=AlertRuleRequestDTOTest`: 9/9 passed, 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]
