Skip to content
New issue

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

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

Already on GitHub? # to your account

Option to Retain Acceptance Testing Files #18

Closed
bendbennett opened this issue Jan 3, 2023 · 1 comment · Fixed by #19
Closed

Option to Retain Acceptance Testing Files #18

bendbennett opened this issue Jan 3, 2023 · 1 comment · Fixed by #19
Labels
enhancement New feature or request
Milestone

Comments

@bendbennett
Copy link
Contributor

This issue is a duplicate of Option to Retain Acceptance Testing Files.

SDK version

N/A

Use-cases

This issue is created by request as part of a series of related acceptance test feature requests that will be cross-referenced to each other for discoverability.

Currently the acceptance testing framework always deletes its temporary directory full of all the intermediate Terraform CLI goodies that happened during a test. The ability to temporarily save these files may aid in the troubleshooting of the acceptance testing framework itself, viewing of finalized test configurations, and potentially debugging of provider issues (such as inspecting intermediate plans or states).

Attempted Solutions

None at the moment.

Proposal

Add an environment variable to skip the deletion of the temporary directory created by the acceptance testing framework. The debug log or t.Log() equivalent could output the root path to view those files.

References

bendbennett added a commit that referenced this issue Jan 3, 2023
bendbennett added a commit that referenced this issue Jan 17, 2023
bendbennett added a commit that referenced this issue Jan 18, 2023
@bendbennett bendbennett added the enhancement New feature or request label Jan 19, 2023
@bendbennett bendbennett added this to the v1.1.0 milestone Jan 19, 2023
bendbennett added a commit that referenced this issue Jan 24, 2023
…en TF_ACC_PERSIST_WORKING_DIR is set.

Wrapping errors in CopyFile() and CopyDir() funcs.

Adding changelog entry for addition of WorkingDir field to TestCase struct (#18)
@github-actions
Copy link

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 25, 2023
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant