hashicorp / hashicorp/terraform-plugin-testing

Add negative `QueryResultCheck`s to confirm that a resource is not included in list results

Open
#555 0 comments 0 reactions 0 assignees View on GitHub
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

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.