Skip to content

Commit f431592

Browse files
authored
skip TestAccOrganizationIam if env var not set
2 parents b15b6a6 + 60ca153 commit f431592

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

google/resource_google_organization_iam_test.go

+5
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package google
22

33
import (
44
"fmt"
5+
"os"
56
"reflect"
67
"sort"
78
"testing"
@@ -19,6 +20,10 @@ import (
1920
// serially.
2021
// Policies are *not tested*, because testing them will ruin changes made to the test org.
2122
func TestAccOrganizationIam(t *testing.T) {
23+
if os.Getenv("TF_RUN_ORG_IAM") != "true" {
24+
t.Skip("Environment variable TF_RUN_ORG_IAM is not set, skipping.")
25+
}
26+
2227
t.Parallel()
2328

2429
org := getTestOrgFromEnv(t)

0 commit comments

Comments
 (0)