Expand description
Shared trigger store test definitions.
Each function tests a specific behavior of the TriggerStore trait.
Backend crates call these with their concrete implementation.
Functionsยง
- test_
claim_ trigger_ run_ dedup - Claim trigger run deduplication.
- test_
cron_ execution_ history - Cron execution history: get_last_cron_execution returns None initially, then the stored value.
- test_
cron_ execution_ optimistic_ lock - Cron execution with optimistic locking.
- test_
cron_ sequential_ executions - Sequential cron executions with correct optimistic lock chaining.
- test_
get_ all_ conditions get_all_conditionsreturns every condition type, not just cron.- test_
get_ conditions_ for_ task - Query conditions by source task.
- test_
get_ cron_ conditions - Query cron conditions.
- test_
get_ event_ conditions - Query event conditions by event code.
- test_
get_ triggers_ for_ condition - Query triggers linked to a condition.
- test_
multiple_ cron_ conditions - Multiple cron conditions can coexist and be retrieved.
- test_
purge_ clears_ all - Purge clears all trigger data.
- test_
register_ and_ get_ condition - Register a condition and retrieve it by ID.
- test_
register_ and_ get_ trigger - Register a trigger definition and retrieve it.
- test_
remove_ triggers_ for_ task - Remove all triggers for a task.
- test_
trigger_ and_ logic - AND trigger logic requires all conditions to be valid.
- test_
valid_ condition_ lifecycle - Record, retrieve, and clear valid conditions.