1.3 KiB
1.3 KiB
Quickstart: Validating Admin List Views
Scenario 1 — SLA runs across tickets
- With SLA runs in
running,paused, andbreachedstates across three tickets, callGET /admin/sla-runsas any authenticated agent. Expected:200, all three, each withticketId/ticketCodepopulated. - Repeat with
?status=breached. Expected: only the breached run. - Repeat with
?status=not-a-real-status. Expected:400.
Scenario 2 — recent escalation events across tickets
- With one automatic and one manual escalation event recorded on two different tickets, call
GET /admin/escalation-events. Expected:200, both, most-recent-first, the automatic one showing itsruleIdand the manual one showingruleId: nulland itstriggeredBy.
Scenario 3 — product catalog with integration status
- With one product that has an active integration and one with no integration at all, call
GET /admin/productsas an admin. Expected:200, the first showsintegrationStatus: "active", the second showsintegrationStatus: null. - Repeat as a non-admin agent. Expected:
403.
What "done" looks like
All three scenarios pass against a real Postgres/Redis, and none of the three endpoints leaks
ProductIntegration.credentialRef or any other integration-internal field.