-
Notifications
You must be signed in to change notification settings - Fork 9.8k
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
Terraform Test: Allow skipping cleanup of entire test file or individual run blocks #36729
Conversation
f121f50
to
88896d6
Compare
88896d6
to
7f4cb14
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left a few comments:
- Some nit-like comments about how terminal output could make it clearer about whether cleanup is being skipped, and why.
- A comment about some scenarios with conflicting skip_cleanup instructions that it might be useful to add tests for.
In the case of conflicting skip_cleanup instructions from run blocks versus the test block, should that cause a parsing error or should the test run and during cleanup users see a warning about the conflicting instructions?
ef3d3a7
to
7121af8
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM - skip_cleanup behaviour matches my expectations from the RFC and the only remaining task is docs, which we discussed would be in a subsequent PR
Implements
skip_cleanup
, which allows skipping the cleanup of individual run blocks or the entire test file. This simply ensures that the cleanup stage for the state is an apply of the run requesting the skip, instead of the normal destroyTarget Release
1.12.x
CHANGELOG entry