Merge pull request #172 from ubschmidt2/testacc_default

Allow for running acceptance tests using the default credentials.
This commit is contained in:
Joe Selman 2017-07-11 14:21:39 -07:00 committed by GitHub
commit e5d55df82b

View File

@ -53,6 +53,7 @@ func testAccPreCheck(t *testing.T) {
"GOOGLE_CREDENTIALS",
"GOOGLE_CLOUD_KEYFILE_JSON",
"GCLOUD_KEYFILE_JSON",
"GOOGLE_USE_DEFAULT_CREDENTIALS",
}
if v := multiEnvSearch(creds); v == "" {
t.Fatalf("One of %s must be set for acceptance tests", strings.Join(creds, ", "))