Skip to content

Consider Plan Checks for Generic Resource/Output Changes #233

Open
@bflad

Description

@bflad

terraform-plugin-testing version

v1.5.1

Use cases

This Go module provides a few abstractions for asserting whether providers are planning a change that will affect state:

In #222, it was noted that due to their naming ExpectEmptyPlan and ExpectNonEmptyPlan should be capturing all plan changes that would affect the saved state -- both resource changes and output changes. However, there could be situations where developers want to write generic assertions against only resource changes or only output changes being expected (or not) to occur. This feature request is here to capture interest and use cases.

Proposal

Introduce separate, but still generic plan checks against any/all resource/output changes, e.g.

  • plancheck.ExpectNoOutputChanges()
  • plancheck.ExpectNoResourceChanges()
  • plancheck.ExpectOutputChanges()
  • plancheck.ExpectResourceChanges()

References

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions