Skip to content

Refresh test step passes regardless of whether ExpectNonEmptyPlan is true or false #599

@henryrecker-pingidentity

Description

terraform-plugin-testing version

v1.14.0

Relevant provider source code

		Steps: []resource.TestStep{
			{
				Config: `resource "terraform_data" "test" {
					input = "asdf"
				}`,
			},
			{
				RefreshState:       true,
				ExpectNonEmptyPlan: false, // Passes whether this is true or false
			},
		},

Terraform Configuration Files

# insert config here

Expected Behavior

I would expect one of the test cases to fail - In theory the plan should be empty on the second step

Actual Behavior

The test passes regardless of what ExpectNonEmptyPlan is set to

Steps to Reproduce

Run the provided test case

References

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions