Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consider removal of all files copied from ConfigDirectory between sequential test steps #172

Open
bendbennett opened this issue Aug 31, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@bendbennett
Copy link
Contributor

terraform-plugin-testing version

v1.4.0

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 the ConfigDirectory 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant