hashicorp / hashicorp/terraform-plugin-testing
Consider running terraform validate against supplied configuration
- Dominant language
- Go
- Stars
- 68
- Forks
- 22
- Avg merge
- 2d 12h
- Merged PRs (30d)
- 1
Description
### terraform-plugin-testing version
```
v1.6.0
```
### Use cases
`TestStep.Config` uses strings to represent terraform configuration. There is no guarantee that the configuration that is supplied is valid. TestStep.ConfigDirectory`, and TestStep.ConfigFile` provide for supplying terraform configuration in either a directory, or a file, respectively, but do not validate the configuration before it is executed.
### Proposal
The terraform configuration supplied through `Config`, `ConfigDirectory`, or `ConfigFile` could be validate using `terraform validate` prior to execution, and errors raised if the configuration is invalid.
### References
- #264
Contributor guide
Assessment
This issue has not been assessed yet.