Skip to content

Commit e9c0422

Browse files
authored
fix: integration tests templates must enforce terraform_tf_binary (#977)
1 parent 81ae429 commit e9c0422

File tree

2 files changed

+14
-12
lines changed

2 files changed

+14
-12
lines changed

tests/integration/004_template/main.tf

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,13 @@ resource "env0_template" "gitlab_template" {
4949
}
5050

5151
resource "env0_template" "template_tg" {
52-
name = "Template for environment resource - tg-${random_string.random.result}"
53-
type = "terragrunt"
54-
repository = "https://github.com/env0/templates"
55-
path = "terragrunt/misc/null-resource"
56-
terraform_version = "0.15.1"
57-
terragrunt_version = "0.35.0"
52+
name = "Template for environment resource - tg-${random_string.random.result}"
53+
type = "terragrunt"
54+
repository = "https://github.com/env0/templates"
55+
path = "terragrunt/misc/null-resource"
56+
terragrunt_tf_binary = "terraform"
57+
terraform_version = "0.15.1"
58+
terragrunt_version = "0.35.0"
5859
}
5960

6061
resource "env0_template" "template_opentofu" {

tests/integration/012_environment/main.tf

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -122,12 +122,13 @@ resource "env0_environment_state_access" "disallow" {
122122
*/
123123

124124
resource "env0_template" "terragrunt_template" {
125-
name = "Terragrunt template for environment resource-${random_string.random.result}"
126-
type = "terragrunt"
127-
repository = "https://github.com/env0/templates"
128-
path = "misc/null-resource"
129-
terraform_version = "0.15.1"
130-
terragrunt_version = "0.35.0"
125+
name = "Terragrunt template for environment resource-${random_string.random.result}"
126+
type = "terragrunt"
127+
repository = "https://github.com/env0/templates"
128+
path = "misc/null-resource"
129+
terragrunt_tf_binary = "terraform"
130+
terraform_version = "0.15.1"
131+
terragrunt_version = "0.35.0"
131132
}
132133

133134
resource "env0_template_project_assignment" "terragrunt_assignment" {

0 commit comments

Comments
 (0)