From 964696fe40fa777a391fd884628f8bf6b22fec64 Mon Sep 17 00:00:00 2001 From: Ludovico Magnocavallo Date: Mon, 30 Mar 2026 17:26:50 +0000 Subject: [PATCH 1/6] Refactor: remove Terragrunt support Strip out all Terragrunt-specific logic, arguments, and classes (e.g., TerragruntTest). Remove Terragrunt test fixtures and associated test files (test_tg_all.py). Clean up test_args.py to remove Terragrunt argument tests. Update README.md to remove the Terragrunt documentation. Going forward, this library will only support Terraform and OpenTofu. --- README.md | 32 ----- .../plan_no_resource_changes/terragrunt.hcl | 3 - test/fixtures/tg_apply_all/bar/terragrunt.hcl | 11 -- test/fixtures/tg_apply_all/foo/terragrunt.hcl | 11 -- test/fixtures/tg_apply_all/terragrunt.hcl | 11 -- test/test_args.py | 46 ------- test/test_tg_all.py | 81 ------------ tftest.py | 116 +----------------- 8 files changed, 4 insertions(+), 307 deletions(-) delete mode 100644 test/fixtures/plan_no_resource_changes/terragrunt.hcl delete mode 100644 test/fixtures/tg_apply_all/bar/terragrunt.hcl delete mode 100644 test/fixtures/tg_apply_all/foo/terragrunt.hcl delete mode 100644 test/fixtures/tg_apply_all/terragrunt.hcl delete mode 100644 test/test_tg_all.py diff --git a/README.md b/README.md index 66ca837..10e6377 100644 --- a/README.md +++ b/README.md @@ -46,38 +46,6 @@ def test_modules(plan): assert res['values']['location'] == plan.variables['gcs_location'] ``` -## Terragrunt support - -Support for Terragrunt actually follows the same principle of the thin `TerraformTest` wrapper. - -Please see the following example for how to use it: - -```python -import pytest -import tftest - - -@pytest.fixture -def run_all_apply_out(fixtures_dir): - # notice for run-all, you need to specify when TerragruntTest is constructed - tg = tftest.TerragruntTest('tg_apply_all', fixtures_dir, tg_run_all=True) - # the rest is very similar to how you use TerraformTest - tg.setup() - # to use --terragrunt-