test(e2e): add control-plane plan/apply-workflow scenario#845
test(e2e): add control-plane plan/apply-workflow scenario#845
Conversation
Agent-Logs-Url: https://github.com/Kong/kongctl/sessions/80d88cc4-6ce2-4355-a064-1c871c10b55e Co-authored-by: rspurgeon <10521262+rspurgeon@users.noreply.github.com>
There was a problem hiding this comment.
Pull request overview
Adds a new E2E scenario to cover the control-plane plan → save → diff --plan → apply --plan workflow, mirroring existing workflow coverage for other resource types so regressions in plan serialization/execution are detected.
Changes:
- Introduces a new control-plane plan/apply workflow scenario with create, update, and idempotency steps.
- Adds base declarative input for an initial control plane and an overlay to drive an UPDATE plan/apply cycle.
- Validates both JSON plan/apply outputs and text diff output for the saved plan file.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| test/e2e/scenarios/control-plane/plan/apply-workflow/testdata/control-plane.yaml | Base declarative control-plane config for the CREATE portion of the workflow. |
| test/e2e/scenarios/control-plane/plan/apply-workflow/overlays/001-update/control-plane.yaml | Overlay to update description/labels to force an UPDATE plan/apply cycle. |
| test/e2e/scenarios/control-plane/plan/apply-workflow/scenario.yaml | New scenario definition exercising plan-to-file, diff-from-file, apply-from-file, and idempotency assertions. |
|
@copilot evaluate the failure from this change in workflow 1533 |
Agent-Logs-Url: https://github.com/Kong/kongctl/sessions/f2e42033-e5a4-4d43-a65b-6f694c1cbb7f Co-authored-by: rspurgeon <10521262+rspurgeon@users.noreply.github.com>
... The failure was caused by using Fixed in 7470b7b by replacing the template placeholders with their literal values ( |
test/e2e/scenarios/control-plane/plan/apply-workflow/testdata/control-plane.yamltest/e2e/scenarios/control-plane/plan/apply-workflow/overlays/001-update/control-plane.yamltest/e2e/scenarios/control-plane/plan/apply-workflow/scenario.yaml{{ .vars.cpRef }}with literalcp-plan-applyin bothdiff --planassertion steps