Commit 1c99d8f
committed
tests/rptest: cover unmatched-route 404 shape on REST proxy and SR
Asserts that GET on a bogus path returns HTTP 404 with the
{"error_code": 404, "message": "..."} envelope clients expect, rather
than Seastar's fallback {"message": "Not found", "code": 404}. Two
assertions, one per port:
- Schema registry (8081) in schema_registry_test.py
- REST proxy (8082) in pandaproxy_test.py
Both subsystems use pandaproxy::server, so the fix in
pandaproxy::server::start() lands on both. Locking in both wire
formats end-to-end is the test that proves the default_404_handler
registration works for both consumers. Removing the
add_default_handler line would regress the body shape and fail both
assertions in CI.1 parent 622a781 commit 1c99d8f
2 files changed
Lines changed: 38 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
502 | 502 | | |
503 | 503 | | |
504 | 504 | | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
505 | 524 | | |
506 | 525 | | |
507 | 526 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1563 | 1563 | | |
1564 | 1564 | | |
1565 | 1565 | | |
| 1566 | + | |
| 1567 | + | |
| 1568 | + | |
| 1569 | + | |
| 1570 | + | |
| 1571 | + | |
| 1572 | + | |
| 1573 | + | |
| 1574 | + | |
| 1575 | + | |
| 1576 | + | |
| 1577 | + | |
| 1578 | + | |
| 1579 | + | |
| 1580 | + | |
| 1581 | + | |
| 1582 | + | |
| 1583 | + | |
| 1584 | + | |
1566 | 1585 | | |
1567 | 1586 | | |
1568 | 1587 | | |
| |||
0 commit comments