diff --git a/helper/resource/testing_config.go b/helper/resource/testing_config.go index 04194dddf..74739c8a0 100644 --- a/helper/resource/testing_config.go +++ b/helper/resource/testing_config.go @@ -115,9 +115,17 @@ func testStep(opts terraform.ContextOpts, state *terraform.State, step TestStep) if stepDiags.HasErrors() { return state, newOperationError("second follow-up plan", stepDiags) } - empty := p.Changes.Empty() + empty := true newState := p.State + // the legacy tests never took outputs into account + for _, c := range p.Changes.Resources { + if c.Action != plans.NoOp { + empty = false + break + } + } + if !empty { if step.ExpectNonEmptyPlan { log.Printf("[INFO] Got non-empty plan, as expected:\n\n%s", legacyPlanComparisonString(newState, p.Changes))