You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1.5 KiB
1.5 KiB
+++ title = "Test suite: router ordering — verify /api/quotes/random is not matched as :id parameter" priority = 6 status = "todo" ticket_type = "task" dependencies = ["ce1e4f", "9b581f", "6e829e"] +++
Integration tests live in `tests/` and exercise the API binary against a temporary SQLite database. They run with `cargo test` and must not require a running Cloudflare environment. The test harness spawns the API server on a random port and returns the base URL.The Axum router must register GET /api/quotes/random before GET /api/quotes/:id, otherwise the string "random" is matched as a path parameter value and the random endpoint is never reached.
cargo fmt
cargo check
cargo clippy
cargo test
`test(quotesdb): add router ordering regression test for /api/quotes/random`