Closed
Description
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
- Consider Plan Check for Output Value Changes #221 (fixing the behavior in this report would obviate some need for a separate plan check, although it would still have its own purpose)