yyqdbngt opened a new pull request, #3381: URL: https://github.com/apache/rocketmq-dashboard/pull/3381
## Summary Extends the existing `AlertRuleTransferServiceTest` (4 to 7 tests) to pin down the import-envelope validation. Added cases: - a null document, a wrong version, and an empty rule list are rejected with their messages; - an envelope over the 200-rule budget is rejected before any rule work; - rule metrics are trimmed before catalog validation (captured on the candidate passed to `metricCatalogService.validate`). ## Why The suite covered domain mismatch and per-rule validation only; the envelope gate and normalization branches were untested. ## Testing `mvn -B test -Dtest=AlertRuleTransferServiceTest` — 7/7 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]
