|
Some checks failed
Secret scan / Scan diff for credential-shaped strings (pull_request) Successful in 8s
sop-tier-check / tier-check (pull_request) Successful in 8s
sop-checklist-gate / gate (pull_request) Successful in 8s
CI / Detect changes (pull_request) Successful in 13s
CI / Shellcheck (E2E scripts) (pull_request) Successful in 5s
CI / Canvas (Next.js) (pull_request) Successful in 5s
CI / Python Lint & Test (pull_request) Successful in 6s
CI / Canvas Deploy Reminder (pull_request) Has been skipped
CI / Platform (Go) (pull_request) Failing after 3m2s
CI / all-required (pull_request) Successful in 9s
sop-checklist / all-items-acked (pull_request) [info tier:low] acked: 0/7 — missing: comprehensive-testing, local-postgres-e2e, staging-smoke, +4 — body-unfilled: comprehensive-testing, l
audit-force-merge / audit (pull_request) Successful in 4s
Add two test files covering the delivery-mode and workspace-status
enforcement contracts:
- models/workspace_delivery_mode_test.go:
- IsValidDeliveryMode: true for "push"/"poll", false for all
other inputs (empty, typos, case variants, trailing space)
- WorkspaceStatus.String(): returns the underlying string for all 10
status constants
- AllWorkspaceStatuses: correct length (10) and membership of all
named constants, no empty strings
- handlers/workspace_dispatchers_test.go:
- resolveDeliveryMode: payloadMode wins without DB query, existing
DB mode returned when present, external runtime defaults to poll,
self-hosted defaults to push, not-found defaults to push,
DB errors propagate, empty-string existing mode falls through
to runtime check
Refs #860
|
||
|---|---|---|
| .. | ||
| architecture_test.go | ||
| event.go | ||
| runtime_defaults_test.go | ||
| runtime_defaults.go | ||
| workspace_delivery_mode_test.go | ||
| workspace_status.go | ||
| workspace.go | ||