yyqdbngt opened a new pull request, #3335: URL: https://github.com/apache/rocketmq-dashboard/pull/3335
## Summary Adds `NativeAlertMetricCatalogControllerTest`, a first unit test for the native alert metric catalog REST endpoint. The catalog service is mocked. Coverage: - `GET /api/native-alert-metrics` delegates with the instance id and domain and returns the catalog rows; - the instance id is passed through as-is (trimming, if any, is the service's concern). ## Why The endpoint backs the native alert rule editor's metric picker; the delegation contract had no direct test. ## Testing `mvn -B test -Dtest=NativeAlertMetricCatalogControllerTest` — 2/2 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]
