yyqdbngt opened a new pull request, #3093: URL: https://github.com/apache/rocketmq-dashboard/pull/3093
### Summary Add the first unit coverage for the bundled Grafana dashboard service (`GrafanaDashboardService`) using the real classpath assets (no mocks): - `listDashboards` returns a non-empty, uid-sorted list with titles; - `getDashboard` / `getDashboardJson` work for a known uid; - an unknown uid yields the existing 404 `BusinessException`; - `getDashboardsArchive` produces a ZIP (`PK` header) containing every listed dashboard. ### Why This service backs the dashboard list/view/export endpoints from bundled JSON assets and had no automated coverage, so regressions in resource resolution, deduplication or archive assembly went unnoticed. ### Testing - `mvn -f server/pom.xml -Dtest=GrafanaDashboardServiceTest test` passes: 4/4. -- 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]
