Skip to content

Commit

Permalink
revert integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
TomerHeber committed Nov 30, 2023
1 parent f3985ae commit 9e82b32
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 17 deletions.
2 changes: 1 addition & 1 deletion tests/integration/001_organization/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
19 changes: 3 additions & 16 deletions tests/integration/006_aws_credentials/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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" {
Expand Down

0 comments on commit 9e82b32

Please sign in to comment.