Skip to content

Commit 3fedc93

Browse files
committed
test(cron): cover delivery outcomes
1 parent 554968f commit 3fedc93

2 files changed

Lines changed: 410 additions & 0 deletions

File tree

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
title: Cron delivery outcomes
2+
3+
scenario:
4+
id: cron-delivery-outcomes
5+
surface: automation
6+
category: automation.cron-jobs
7+
coverage:
8+
primary:
9+
- automation.webhook-delivery
10+
- automation.failure-destinations
11+
- automation.skipped-run-alerts
12+
- automation.delivery-previews
13+
objective: Prove cron delivery, failure routing, skipped-run alerts, and delivery previews through durable production boundaries.
14+
successCriteria:
15+
- A real command result reaches a loopback HTTP receiver through the production SSRF-guarded cron webhook sender.
16+
- Successful webhook delivery is persisted on the cron job and authoritative task-run history.
17+
- A failed command reaches its configured failure-destination webhook and keeps durable error state.
18+
- A skipped isolated run emits its configured webhook alert and persists skip counters and alert timing.
19+
- Persisted webhook and delivery-opt-out jobs produce the expected user-visible delivery previews.
20+
docsRefs:
21+
- docs/automation/cron-jobs.md
22+
- docs/cli/cron.md
23+
- docs/gateway/protocol.md
24+
codeRefs:
25+
- src/cron/service/timer-job-runner.ts
26+
- src/gateway/server-cron-notifications.ts
27+
- src/cron/service/failure-alerts.ts
28+
- src/cron/delivery-preview.ts
29+
- src/cron/task-run-history.ts
30+
- src/cron/cron-delivery-outcomes.e2e.test.ts
31+
execution:
32+
kind: vitest
33+
path: src/cron/cron-delivery-outcomes.e2e.test.ts
34+
summary: Execute real loopback webhook delivery and persist primary, failure, skipped-alert, and preview outcomes.

0 commit comments

Comments
 (0)