Skip to content

plancheck: ExpectEmptyPlan Does Not Account for Output Changes #222

Closed
@bflad

Description

@bflad

terraform-plugin-testing version

v1.5.1

Relevant provider source code

resource.UnitTest(t, resource.TestCase{
  Steps: []resource.TestStep{
    {
      Config: `output "test" { value = "one" }`,
    },
    {
      Config: `output "test" { value = "two" }`,
      ConfigPlanChecks: resource.ConfigPlanChecks{
        PreApply: []plancheck.PlanCheck{
          plancheck.ExpectEmptyPlan(),
        },
      },
    },
  },
})

Expected Behavior

Given the plan check naming and that in the human-readable plan output that the output change would show, that this assertion would fail the test.

Actual Behavior

Assertion passes and test passes.

Steps to Reproduce

go test

References

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions