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

   ### Summary
   
   Adds the first dedicated unit test suite for the `MetricProfile` enum, which 
distinguishes the RocketMQ 4.x exporter and the RocketMQ 5.x native scrape 
profiles.
   
   Each constant carries an id, display name and description used by the 
metrics onboarding UI. The tests pin the constant set, the metadata accessors 
and the id uniqueness.
   
   ### Changes
   
   - 
`server/src/test/java/org/apache/rocketmq/studio/cluster/metrics/MetricProfileTest.java`
     - `exposesBothKnownProfiles`: the two supported profiles exist.
     - `rocketmq4ProfileExposesItsMetadata` / 
`rocketmq5ProfileExposesItsMetadata`: id, display name and description match 
expectations.
     - `profileIdsAreUnique`: ids stay distinct across profiles.
   
   ### Testing
   
   - `mvn -B test -Dtest=MetricProfileTest` passes (4 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]

Reply via email to