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.
| title |
status |
type |
priority |
created_at |
updated_at |
blocked_by |
| Test suite: GET /api/ — OpenAPI spec returned as valid JSON with expected structure |
completed |
task |
normal |
2026-03-10T23:32:08Z |
2026-03-10T23:32:15Z |
| quotesdb-gu9j |
| quotesdb-753n |
|
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.
Write the `GET /api/` test suite in `tests/test_openapi.rs` (or similar). Assert that the endpoint:
1. Returns HTTP 200
2. Returns `Content-Type: application/json`
3. Returns a body that is valid JSON
4. The JSON object contains an `openapi` key with value `"3.1.0"` (or `"3.0.x"`)
5. The JSON object contains `paths` and `info` keys
- Use the shared test harness from ticket 9b581f.
- No authentication required for this endpoint.
Use `superpowers:verification-before-completion` before closing.
Run in order from the `quotesdb/` directory:
cargo fmt
cargo check
cargo clippy
cargo test
`test(quotesdb): add GET /api/ test suite — OpenAPI spec endpoint`