yyqdbngt opened a new pull request, #3583:
URL: https://github.com/apache/rocketmq-dashboard/pull/3583
### Summary
Adds the first dedicated unit test suite for `PrometheusAlertRule`, the
record that models one entry of the exported Prometheus rules YAML.
The tests pin the component accessors, nullable tail fields and record
equality so the export envelope stays stable.
### Changes
-
`server/src/test/java/org/apache/rocketmq/studio/ops/alert/PrometheusAlertRuleTest.java`
- `exposesAllRecordComponents`: every Prometheus rule field round-trips
through the accessors.
- `nullableFieldsStayNull`: team/summary/description may be absent.
- `equalityFollowsRecordComponents`: record equality and hash behaviour.
### Testing
- `mvn -B test -Dtest=PrometheusAlertRuleTest` passes (3 tests, all green).
--
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]