yyqdbngt opened a new pull request, #3089: URL: https://github.com/apache/rocketmq-dashboard/pull/3089
### Summary Add the first unit coverage for the broker config drift comparison (`BrokerConfigDiffService`): - `reportsAlignedBrokersAsCompleteWithoutDrift` — two brokers with identical configs yield `complete=true`, `brokerCount=2`, `driftDetected=false` and no differences. - `flagsQueueCountDriftAcrossBrokers` — a queue-count mismatch across brokers is reported as a `writeQueueNums` difference with one value per broker, while the aligned `readQueueNums` stays out of the difference list. ### Why `compare()` is the guard rail for the "Broker config drift" view; it previously had no automated coverage, so regressions in broker enumeration, reachability accounting or field comparison went unnoticed. ### Testing - `mvn -f server/pom.xml -Dtest=BrokerConfigDiffServiceTest test` passes: 2/2. -- 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]
