hashicorp / hashicorp/terraform-plugin-testing

Add plan check for unset value

Open
#617 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

```
v1.14.0
```

### Use cases

I want to validate that a value hasn't been set in the plan.

### Attempted solutions

None of the existing methods work, so I'd need to write a custom check function.

### Proposal

please add support for `plancheck.ExpectNoValue("resource.instance", "attribute")`. This is a specific requirement for the plan check, as the state check uses the schema.

### 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.