You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/superpowers/plans/2026-09-03-host-cluster-role-import.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -512,4 +512,4 @@ Restore `REPO_DIR` in `suite.env`. Nothing from this task is committed.
512
512
- **Spec coverage.** Design §1 (import writes the default) → Task 3. Design §2 (helper + Update short-circuit, equality rules for null/""/unknown/empty/order) → Tasks 1–2; every equality rule in the spec has a table row in Task 1. Testing section: helper table test → Task 1; ImportState unit test via `tfsdk.State` → Task 3; Update no-op through framework types → Task 2; lab check as the live fallback → Task 5. Changelog → Task 4. Non-goals respected: no schema change, no read-back of `host_cluster`/`backends` (Task 3 asserts they stay null).
513
513
- **Placeholders.** None: every step carries its code or its exact command and expected output.
514
514
- **Type consistency.** `roleOptionsChanged(plan, state *hostClusterRoleModel) bool`, `hostClusterOption`, `backendsOption` are defined in Task 1 and used with the same signatures in Task 2. `roleSchema(t)` and `roleState(t, m)` are defined in Task 2 and reused in Task 3. `roleModel` and `backendsList` are defined in Task 1's test file and reused in Tasks 2–3.
515
-
- **Post-approval addition.** At the final whole-branch review, the reviewer asked for the acceptance test described in Task 5/the Testing section to actually exist rather than stay a documented manual fallback. Added `TestAccResmgrHostClusterRoleImport` (and `testAccCheckHostClusterRoleDestroy`) to `internal/services/resmgr/resmgr_test.go`, gated on `PCD_ACC_RESMGR` and `PCD_ACC_HOST_ID`, by user decision — the plan and the branch now agree.
515
+
- **Post-approval addition.** At the final whole-branch review, the reviewer asked for the acceptance test described in Task 5/the Testing section to actually exist rather than stay a documented manual fallback. Added `TestAccResmgrHostClusterRoleImport` (and `testAccCheckHostClusterRoleDestroy`) to `internal/services/resmgr/resmgr_test.go`, gated on `PCD_ACC_RESMGR` and `PCD_ACC_HOST_ID`, by user decision — the plan and the branch now agree. Its steps are create, ImportStateVerify, destroy-poll: create the role and check its attributes, import it into a fresh working directory and let `ImportStateVerify` compare the imported attributes against the created state, then `testAccCheckHostClusterRoleDestroy` polls the host record after destroy until the role clears.
0 commit comments