hashicorp / hashicorp/terraform-plugin-testing
Refresh test step passes regardless of whether `ExpectNonEmptyPlan` is `true` or `false`
- 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
Assessment
This issue has not been assessed yet.