Consider removal of all files copied from ConfigDirectory
between sequential test steps
#172
Labels
enhancement
New feature or request
terraform-plugin-testing version
Use cases
The changes in Add Option to use Terraform Configuration in TestStep allow for specifying a
ConfigDirectory
which contains Terraform configuration. The contents of the specified directory are copied into the working directory when a test step is executed. Once the test step has been executed, any files with.tf
or.json
extensions are removed. However, if there are files within theConfigDirectory
that have file extensions other than.tf
and.json
then these files will persist between test steps.Attempted solutions
N/A
Proposal
We should be preserving the files necessary between steps in the working directory such as the
terraform.tfstate
, but removing the rest of the working directory files/directories.References
The text was updated successfully, but these errors were encountered: