Repository navigation
Release v2.0.0: cleanup, bug fixes, and packaging/CI modernization - #95
Merged
Merged
Conversation
…n_out/plan_file, and fix core bugs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Prepares
v2.0.0oftftest:_cache,enable_cache,use_cache,cache_dir) and legacy dead code (TerraformStateResource,__bytes__).tf.tfdiraspathlib.Pathacross all initialization modes while acceptingstr | os.PathLikefor all path arguments.with TerraformTest(...) as tf:andtf.cleanup(), clean upterraform.tfstate.d/, preserve pre-existing.terraform.lock.hclfiles, and support directory linking insetup(extra_files=...)./tmpleak fix: addplan_outtoplan()andplan_filetoapply(), and unlink internal temporary plan files infinallywhenoutput=Trueandplan_outis omitted.kv_flagsvalues inparse_args()so integerparallelismdoes not crashsubprocess.Popen.json.dumpsintf_varssotype = boolvariables receive valid lowercase HCL booleans.disable_prevent_destroybackup restoration (with_suffix('')instead ofstr.strip('.bkp')), support compactprevent_destroy=true, skip.terraform/, and avoid overwriting existing.bkpbackups on repeatedsetup().stderrconcurrently inexecute_command()to avoid OS pipe deadlocks and populatecmd_errorconsistently, and raiseTerraformTestErroron all unexpected non-zero exit codes (allowing2forplan -detailed-exitcode).AttributeErrorinstead ofKeyErrorinTerraformPlanOutput.__getattr__andTerraformState.__getattr__, guardprior_state: null, and fix root-module anddata.resource keys inTerraformState.resources.setup.py(nose>=1.3) withpyproject.toml(requires-python = ">=3.10"), update GitHub Actions workflows to test Python3.10and3.13against both Terraform and OpenTofu, and expand regression test coverage.