From f690d6ec5778055eb40ab73151528302f8cd42e2 Mon Sep 17 00:00:00 2001 From: Marcelo Luiz Onhate Date: Wed, 13 Nov 2024 10:42:50 -0300 Subject: [PATCH] fix: integration tests -> templates must enforce terraform_tf_binary --- tests/integration/004_template/main.tf | 13 +++++++------ tests/integration/012_environment/main.tf | 13 +++++++------ 2 files changed, 14 insertions(+), 12 deletions(-) diff --git a/tests/integration/004_template/main.tf b/tests/integration/004_template/main.tf index e02d3830..65d9f8f4 100644 --- a/tests/integration/004_template/main.tf +++ b/tests/integration/004_template/main.tf @@ -49,12 +49,13 @@ resource "env0_template" "gitlab_template" { } resource "env0_template" "template_tg" { - name = "Template for environment resource - tg-${random_string.random.result}" - type = "terragrunt" - repository = "https://github.com/env0/templates" - path = "terragrunt/misc/null-resource" - terraform_version = "0.15.1" - terragrunt_version = "0.35.0" + name = "Template for environment resource - tg-${random_string.random.result}" + type = "terragrunt" + repository = "https://github.com/env0/templates" + path = "terragrunt/misc/null-resource" + terragrunt_tf_binary = "terraform" + terraform_version = "0.15.1" + terragrunt_version = "0.35.0" } resource "env0_template" "template_opentofu" { diff --git a/tests/integration/012_environment/main.tf b/tests/integration/012_environment/main.tf index f60f3b7d..8e9de026 100644 --- a/tests/integration/012_environment/main.tf +++ b/tests/integration/012_environment/main.tf @@ -122,12 +122,13 @@ resource "env0_environment_state_access" "disallow" { */ resource "env0_template" "terragrunt_template" { - name = "Terragrunt template for environment resource-${random_string.random.result}" - type = "terragrunt" - repository = "https://github.com/env0/templates" - path = "misc/null-resource" - terraform_version = "0.15.1" - terragrunt_version = "0.35.0" + name = "Terragrunt template for environment resource-${random_string.random.result}" + type = "terragrunt" + repository = "https://github.com/env0/templates" + path = "misc/null-resource" + terragrunt_tf_binary = "terraform" + terraform_version = "0.15.1" + terragrunt_version = "0.35.0" } resource "env0_template_project_assignment" "terragrunt_assignment" {