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

   ### Motivation
   
   The existing `GrafanaDashboardControllerTest` covers the four happy-path 
endpoints but not the empty catalog shape nor the error translation for an 
unknown dashboard.
   
   ### Changes
   
   - `listDashboardsShouldReturnEmptyArrayWhenNoneExist`: an empty dashboard 
catalog is exposed as an empty `data` array with a 200 result.
   - `getDashboardShouldTranslateUnknownDashboardTo404`: an unknown dashboard 
uid surfaces as HTTP 404 with the business error message via the global handler.
   
   ### Verification
   
   ```
   mvn -B test -Dtest=GrafanaDashboardControllerTest
   [INFO] Tests run: 6, Failures: 0, Errors: 0, Skipped: 0
   [INFO] BUILD SUCCESS
   ```


-- 
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