hashicorp / hashicorp/terraform-plugin-testing

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

Open
#599 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Go
Stars
68
Forks
22
Avg merge
2d 12h
Merged PRs (30d)
1

Description

### terraform-plugin-testing version

```
v1.14.0
```

### Relevant provider source code

```go

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

```

### Terraform Configuration Files

```tf
# 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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.