Telegram (ask questions / claim the issue here first): https://t.me/+DOylgFv1jyJlNzM0
Why this matters
tests/integration/admin-metrics.test.ts mocks indexerService and only exercises GET /metrics. The HTTP handlers in admin.routes.ts:176-249 - including the validation that a missing/negative ledger returns 400 and that reset/replay return ok/202 - are never tested through the router, so auth + validation + status codes on these operational endpoints are unverified.
Acceptance criteria
Files to touch
backend/tests/integration/admin-metrics.test.ts
backend/src/routes/v1/admin.routes.ts
Out of scope
- Re-testing the metrics aggregation already covered
Why this matters
tests/integration/admin-metrics.test.ts mocks indexerService and only exercises GET /metrics. The HTTP handlers in admin.routes.ts:176-249 - including the validation that a missing/negative ledger returns 400 and that reset/replay return ok/202 - are never tested through the router, so auth + validation + status codes on these operational endpoints are unverified.
Acceptance criteria
Files to touch
backend/tests/integration/admin-metrics.test.tsbackend/src/routes/v1/admin.routes.tsOut of scope