From 9e82b32fe12a9bc52c62a841500a46dc4a3cd2f5 Mon Sep 17 00:00:00 2001 From: Tomer Heber Date: Thu, 30 Nov 2023 11:08:43 -0600 Subject: [PATCH] revert integration test --- tests/integration/001_organization/main.tf | 2 +- tests/integration/006_aws_credentials/main.tf | 19 +++---------------- 2 files changed, 4 insertions(+), 17 deletions(-) diff --git a/tests/integration/001_organization/main.tf b/tests/integration/001_organization/main.tf index c2d30b53..8b603cfc 100644 --- a/tests/integration/001_organization/main.tf +++ b/tests/integration/001_organization/main.tf @@ -8,6 +8,6 @@ resource "env0_organization_policy" "my_organization_policy" { max_ttl = "2-M" default_ttl = var.second_run ? "7-h" : "13-h" do_not_consider_merge_commits_for_pr_plans = var.second_run ? false : true - enable_oidc = true + enable_oidc = var.second_run ? false : true enforce_pr_commenter_permissions = var.second_run ? false : true } diff --git a/tests/integration/006_aws_credentials/main.tf b/tests/integration/006_aws_credentials/main.tf index 6f6db03f..8731cf69 100644 --- a/tests/integration/006_aws_credentials/main.tf +++ b/tests/integration/006_aws_credentials/main.tf @@ -26,23 +26,10 @@ data "env0_aws_credentials" "my_role_by_access_key" { depends_on = [env0_aws_credentials.my_role_by_access_key] } -resource "env0_organization_policy" "org_policy" { - enable_oidc = true -} - resource "env0_aws_oidc_credentials" "oidc_credentials" { - name = "Test Oidc Credentials ${random_string.random.result}" - role_arn = "Role ARN" - duration = 7200 - depends_on = [env0_organization_policy.org_policy] -} - -data "env0_aws_oidc_credentials" "by_id" { - id = env0_aws_oidc_credentials.oidc_credentials.id -} - -data "env0_aws_oidc_credentials" "by_name" { - name = env0_aws_oidc_credentials.oidc_credentials.name + name = "Test Oidc Credentials ${random_string.random.result}" + role_arn = "Role ARN" + duration = 7200 } output "name_by_arn" {