yyqdbngt opened a new pull request, #3581:
URL: https://github.com/apache/rocketmq-dashboard/pull/3581
### Summary
Deepens `QueryHistoryControllerTest` with three uncovered controller paths:
the trace-query listing defaults, the per-query results endpoint and the lower
page bound.
### Changes
-
`server/src/test/java/org/apache/rocketmq/studio/instance/message/QueryHistoryControllerTest.java`
- `listsTraceQueriesWithDefaults`: no-param request delegates to the
service with null filters and the 1/20 defaults.
- `returnsMessageQueryResultsById`: `/messages/{id}/results` returns the
stored message records for the id.
- `rejectsPageBelowOne`: page 0 is rejected with the `page must be at
least 1` message.
Suite grows from 4 to 7 tests.
### Testing
- `mvn -B test -Dtest=QueryHistoryControllerTest` passes (7 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]