diff --git a/tests/integration/012_environment/main.tf b/tests/integration/012_environment/main.tf index c86872c4..c6ea1ce2 100644 --- a/tests/integration/012_environment/main.tf +++ b/tests/integration/012_environment/main.tf @@ -127,7 +127,7 @@ resource "env0_template" "workflow_template" { name = "Template for workflow environment-${random_string.random.result}" type = "workflow" repository = "https://github.com/env0/templates" - path = "misc/workflow-environment-basic" + path = "misc/single-environment-workflow" terraform_version = "1.1.5" } @@ -154,28 +154,15 @@ resource "env0_environment" "workflow-environment" { approve_plan_automatically = true sub_environment_configuration { - alias = "rootService1" - revision = "master" + alias = "rootService1" + revision = "master" configuration { - name = "sub_env1_var1" - value = "hello" + name = "sub_env1_var1" + value = "hello" } configuration { - name = "sub_env1_var2" - value = "world" - } - } - - sub_environment_configuration { - alias = "rootService2" - revision = "master" - configuration { - name = "sub_env2_var1" - value = "hello" - } - configuration { - name = var.second_run ? "sub_env2_var3" : "sub_env2_var2" - value = var.second_run ? "world2" : "world" + name = "sub_env1_var2" + value = "world" } } }