From 2c601f33140285dd2f1e87f52d7e85199ec3e723 Mon Sep 17 00:00:00 2001 From: Michael Parker Date: Tue, 19 Dec 2017 14:56:38 -0600 Subject: [PATCH] Update test to use utils from provider_test --- google/data_source_google_kms_secret_test.go | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/google/data_source_google_kms_secret_test.go b/google/data_source_google_kms_secret_test.go index c8ddcebbd41..e4e355da9e6 100644 --- a/google/data_source_google_kms_secret_test.go +++ b/google/data_source_google_kms_secret_test.go @@ -10,21 +10,13 @@ import ( "github.com/hashicorp/terraform/terraform" "google.golang.org/api/cloudkms/v1" "log" - "os" ) func TestAccGoogleKmsSecret_basic(t *testing.T) { t.Parallel() - skipIfEnvNotSet(t, - []string{ - "GOOGLE_ORG", - "GOOGLE_BILLING_ACCOUNT", - }..., - ) - - projectOrg := os.Getenv("GOOGLE_ORG") - projectBillingAccount := os.Getenv("GOOGLE_BILLING_ACCOUNT") + projectOrg := getTestOrgFromEnv(t) + projectBillingAccount := getTestBillingAccountFromEnv(t) projectId := "terraform-" + acctest.RandString(10) keyRingName := fmt.Sprintf("tf-test-%s", acctest.RandString(10))