Ticket Lifecycle
OpenFrame Documentation
Get the most out of OpenFrame · Book 30 minutes with Conrad, 25 years in IT. He'll show you what Mingo and Fae can take off your list.
OpenFrame Documentation
External Api Tests verifies the largest External API resource surface: tickets and their user-attributed operations.
ExternalTicketsTest is distinct from the other resource suites because ticket operations resolve a principal from the gateway-generated X-User-Id. The tests therefore verify that an API key acts as its owner, particularly when it creates notes and the response exposes the note author.
The ordered workflow creates one ticket, reads and lists it, updates it, validates reference data, modifies tags and assignment, adds and updates a note, validates its visibility, deletes it, follows an advertised lifecycle transition, unlinks related device and customer records, and exercises invalid lookups and request validation.
stateDiagram-v2
[*] --> Created
Created --> Updated
Updated --> Transitioned
Transitioned --> Resolved: Teardown transition
Resolved --> Archived: Teardown transition
The External API does not provide ticket deletion. Teardown finds tenant status definitions, moves the test-created ticket to a RESOLVED status, then to ARCHIVED. The two-step cleanup is required because a newly created ticket is not permitted to transition directly to archived status. Cleanup is best effort so it cannot hide the failure that caused teardown to run.
The test only asserts successful transition to a target advertised in availableTransitions; this treats the server response as the authoritative per-ticket transition policy.