hashicorp / hashicorp/terraform-plugin-testing
Add negative `QueryResultCheck`s to confirm that a resource is not included in list results
Open
enhancement
- Dominant language
- Go
- Stars
- 68
- Forks
- 22
- Avg merge
- 2d 12h
- Merged PRs (30d)
- 1
Description
### terraform-plugin-testing version
```
github.com/hashicorp/terraform-plugin-testing v1.14.0-beta.1
```
### Use cases
When a list resource is configured to return a subset of remote resources, we are likely to want to validate that the correct resources are **not** included in the results.
### Proposal
Add `QueryResultCheck`s such as:
* `querycheck.ContainsNoResourceWithName`
* `querycheck.ExpectNoIdentity`
Contributor guide
Assessment
This issue has not been assessed yet.