Skip to content

Commit d1023c8

Browse files
committed
Skip test if HYOK_ORGANIZATION_NAME not included in env variable
1 parent 53293df commit d1023c8

File tree

4 files changed

+12
-0
lines changed

4 files changed

+12
-0
lines changed

internal/provider/resource_tfe_aws_oidc_configuration_test.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ func TestAccTFEAWSOIDCConfiguration_basic(t *testing.T) {
1313
skipUnlessHYOKEnabled(t)
1414

1515
orgName := os.Getenv("HYOK_ORGANIZATION_NAME")
16+
if orgName == "" {
17+
t.Skip("Skipping test. Set HYOK_ORGANIZATION_NAME environment to enable test.")
18+
}
1619

1720
originalRoleARN := "arn:aws:iam::123456789012:role/terraform-provider-tfe-example-1"
1821
newRoleARN := "arn:aws:iam::123456789012:role/terraform-provider-tfe-example-2"

internal/provider/resource_tfe_azure_oidc_configuration_test.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ func TestAccTFEAzureOIDCConfiguration_basic(t *testing.T) {
1313
skipUnlessHYOKEnabled(t)
1414

1515
orgName := os.Getenv("HYOK_ORGANIZATION_NAME")
16+
if orgName == "" {
17+
t.Skip("Skipping test. Set HYOK_ORGANIZATION_NAME environment to enable test.")
18+
}
1619

1720
originalClientID := "client-id-1"
1821
updatedClientID := "client-id-2"

internal/provider/resource_tfe_gcp_oidc_configuration_test.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ func TestAccTFEGCPOIDCConfiguration_basic(t *testing.T) {
1313
skipUnlessHYOKEnabled(t)
1414

1515
orgName := os.Getenv("HYOK_ORGANIZATION_NAME")
16+
if orgName == "" {
17+
t.Skip("Skipping test. Set HYOK_ORGANIZATION_NAME environment to enable test.")
18+
}
1619

1720
originalServiceAccountEmail := "service-account@example.iam.gserviceaccount.com"
1821
updatedServiceAccountEmail := "updated-service-account@example.iam.gserviceaccount.com"

internal/provider/resource_tfe_vault_oidc_configuration_test.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ func TestAccTFEVaultOIDCConfiguration_basic(t *testing.T) {
1313
skipUnlessHYOKEnabled(t)
1414

1515
orgName := os.Getenv("HYOK_ORGANIZATION_NAME")
16+
if orgName == "" {
17+
t.Skip("Skipping test. Set HYOK_ORGANIZATION_NAME environment to enable test.")
18+
}
1619

1720
originalAddress := "https://vault.example.com"
1821
updatedAddress := "https://vault.example2.com"

0 commit comments

Comments
 (0)