Expand description
Reusable conformance checks for TicketSource implementations.
The ticket analogue of gonzalo-core’s substrate conformance suite
(ADR 0006/0010): the executable definition of what every connector must do.
Connectors run these in their own tests against recorded fixtures
(wiremock), keyed on policy variants where a platform’s status signal is
configurable (e.g. GitLab scoped-label vs intrinsic, Asana section vs
completed). These helpers are provider-agnostic — they assert the invariants
that must hold for any imported ticket and any source.
Functions§
- assert_
ticket_ invariants - Invariants every imported ticket must satisfy, regardless of provider.
- assert_
write_ gating - A source must honor its declared write capability: if
capabilities().pushis false,set_statemust fail withSourceError::Unsupportedrather than silently no-op or panic.