Commit 44b69d2
test(fly-app): add unit, integration, and e2e test coverage
- Pure unit tests for parse_cursor (None, valid, malformed, negative
ledger) and serialize_raw (None, valid JSON inline, invalid JSON).
- DB-backed HTTP integration tests using actix_web::test::init_service
against a real Postgres: wasms list grouping and channel resolution,
wasm-by-version, 404s, limit/cursor validation, contracts JOIN across
registered+deployed+wasms, and registries ordering.
- End-to-end test that loads registry-turbo-v4.yaml, replays each
transform_3_* SQL over the real Soroban fixtures in
test/fixtures/soroban-events-real/, and asserts the resulting rows
surface correctly through /v1/registries, /v1/contracts, and
/v1/wasms. Flipping the root contract id in the pipeline YAML makes
the sub-registry filter drop to zero rows, failing this suite.
DB-gated tests skip silently when TEST_DATABASE_URL is unset; e2e
additionally requires the real fixtures directory to be populated.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent e04f86f commit 44b69d2
3 files changed
Lines changed: 892 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
0 commit comments