Skip to content

Commit

Permalink
Update test to use utils from provider_test
Browse files Browse the repository at this point in the history
  • Loading branch information
mrparkers committed Dec 19, 2017
1 parent b3e509f commit 2c601f3
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions google/data_source_google_kms_secret_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 2c601f3

Please sign in to comment.