backend/local: adding some informative comments to commented-out tests
This commit is contained in:
parent
c661157999
commit
3da04ef9fc
|
@ -84,7 +84,6 @@ func (b *Local) opApply(
|
||||||
}
|
}
|
||||||
|
|
||||||
trivialPlan := plan.Changes.Empty()
|
trivialPlan := plan.Changes.Empty()
|
||||||
|
|
||||||
hasUI := op.UIOut != nil && op.UIIn != nil
|
hasUI := op.UIOut != nil && op.UIIn != nil
|
||||||
mustConfirm := hasUI && ((op.Destroy && (!op.DestroyForce && !op.AutoApprove)) || (!op.Destroy && !op.AutoApprove && !trivialPlan))
|
mustConfirm := hasUI && ((op.Destroy && (!op.DestroyForce && !op.AutoApprove)) || (!op.Destroy && !op.AutoApprove && !trivialPlan))
|
||||||
if mustConfirm {
|
if mustConfirm {
|
||||||
|
|
|
@ -189,6 +189,8 @@ func TestLocal_planDestroy(t *testing.T) {
|
||||||
}
|
}
|
||||||
|
|
||||||
plan := testReadPlan(t, planPath)
|
plan := testReadPlan(t, planPath)
|
||||||
|
// This statement can be removed when the test is fixed and replaced with the
|
||||||
|
// commented-out test below.
|
||||||
if plan == nil {
|
if plan == nil {
|
||||||
t.Fatalf("plan is nil")
|
t.Fatalf("plan is nil")
|
||||||
}
|
}
|
||||||
|
@ -223,6 +225,8 @@ func TestLocal_planOutPathNoChange(t *testing.T) {
|
||||||
}
|
}
|
||||||
|
|
||||||
plan := testReadPlan(t, planPath)
|
plan := testReadPlan(t, planPath)
|
||||||
|
// This statement can be removed when the test is fixed and replaced with the
|
||||||
|
// commented-out test below.
|
||||||
if plan == nil {
|
if plan == nil {
|
||||||
t.Fatalf("plan is nil")
|
t.Fatalf("plan is nil")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue