-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Chore: Integration test for the bug not possible to use OpenTofu as b…
…ackend for Terragrunt via env0 Terraform provider (#974) (#976) * chore: Integration test for the bug not possible to use OpenTofu as backend for Terragrunt via env0 Terraform provider * chore: Integration test for the bug not possible to use OpenTofu as backend for Terragrunt via env0 Terraform provider Co-authored-by: Marcelo Luiz Onhate <[email protected]>
- Loading branch information
1 parent
e9c0422
commit 74b8a6d
Showing
3 changed files
with
47 additions
and
0 deletions.
There are no files selected for viewing
15 changes: 15 additions & 0 deletions
15
tests/integration/036_environment_without_template_settings_terragrunt_opentofu/conf.tf
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
terraform { | ||
backend "local" { | ||
} | ||
required_providers { | ||
env0 = { | ||
source = "terraform-registry.env0.com/env0/env0" | ||
} | ||
} | ||
} | ||
|
||
provider "env0" {} | ||
|
||
variable "second_run" { | ||
default = false | ||
} |
1 change: 1 addition & 0 deletions
1
...ation/036_environment_without_template_settings_terragrunt_opentofu/expected_outputs.json
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{} |
31 changes: 31 additions & 0 deletions
31
tests/integration/036_environment_without_template_settings_terragrunt_opentofu/main.tf
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
provider "random" {} | ||
|
||
resource "random_string" "random" { | ||
length = 8 | ||
special = false | ||
min_lower = 8 | ||
} | ||
|
||
resource "env0_project" "project" { | ||
name = "project-environment-without_template-${random_string.random.result}" | ||
force_destroy = true | ||
} | ||
|
||
resource "env0_environment" "environment" { | ||
name = "environment-without_template-${random_string.random.result}" | ||
project_id = env0_project.project.id | ||
is_remote_backend = false | ||
force_destroy = true | ||
|
||
without_template_settings { | ||
description = "Core Azure" | ||
repository = "https://github.com/env0/templates" | ||
path = "terragrunt/misc/null-resource" | ||
opentofu_version = "1.8.1" | ||
terragrunt_version = "0.64.5" | ||
type = "terragrunt" | ||
revision = "master" | ||
is_terragrunt_run_all = true | ||
terragrunt_tf_binary = "opentofu" | ||
} | ||
} |