Repository navigation
Labels
area: messagingMessaging channels, bridges, manifests, or channel lifecyclehelp wantedMaintainers welcome external contribution
Description
Objective
Use one canonical valid messaging-plan builder across root and source tests.
Evidence
Overlapping plan construction remains in:
test/helpers/messaging-plan-fixtures.tstest/messaging-plan-test-helper.tstest/messaging-plan-image-boundary.test.tssrc/lib/onboard/machine/handlers/policies-test-fixtures.ts
The policy-handler fixture must first become an active consumer in #8347 so this issue can change the shared builder contract against all known consumers.
Scope
- Select one owner for the valid-plan baseline.
- Preserve workflow, channel, credential, policy, and image-boundary scenario values at each call site.
- Return fresh nested arrays and objects for every call.
- Keep invalid plans and behavior assertions local.
- Do not introduce a generic mock DSL.
Relationships
- Parent Epic: Consolidate test support and enforce test-suite boundaries #8345
- Blocked by: Make the primary policy-handler suite use its existing test fixture #8347 — it establishes the policy-handler fixture as an active consumer before this issue changes the shared builder contract.
- Blocks: None.
- Start condition: Do not start until GitHub shows zero active blockers.
Acceptance criteria
- One builder owns the valid messaging-plan baseline.
- Every consumer receives fresh nested state.
- Explicit invalid plans remain at their call sites.
- Test titles and behavior remain unchanged.
- The change has a negative net LOC delta.
Validation
Run the affected integration messaging-plan suites and:
npx vitest run --project cli src/lib/onboard/machine/handlers/policies.test.ts src/lib/onboard/machine/handlers/policies-restricted-resume.test.ts
npm run typecheck:cli
npm run test:projects:checkMetadata
Metadata
Assignees
Labels
area: messagingMessaging channels, bridges, manifests, or channel lifecyclehelp wantedMaintainers welcome external contribution
Activity
test(messaging): share one messaging-plan builder (NVIDIA#8538)
test(rebuild): build rebuild plans from the shared messaging fixture