Repository navigation
Conversation
…nds (infiniflow#20367)" This reverts commit fc578ea. The MQ LIST PENDING form is needed again. Note that restoring the CLI plumbing alone does not make it filter: the admin handler and the NATS engine still ignore the pending flag.
Port the single test from test/testcases/restful_api/test_router_contracts.py using the shared test/api helpers instead of a private request layer. - TestRouteNotFoundReturnsJSON drives an unauthenticated request through restCall and asserts the HandleNoRoute JSON contract via restCode and restResult.JSON - No helpers_test.go or config.go changes; the shared restCall/restCode layer already covers logging and assertions The Python test is kept until the restful suite is migrated as a whole.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Merge Risk: ⚪ Minimal · up to
|
Summary
What
Port test/testcases/restful_api/test_router_contracts.py into test/api using the
shared helper layer (restCall / restCode / restResult) instead of a private
request/logging layer.
Changes
restResult: HTTP 404, code 404, error "Not Found", exact
"Not Found: /api/v1/missing_route" message, data null.
restCall (a *TestConfig copy with APIKey cleared) and delegates the
assertions to the helper.