mirror of
https://github.com/letic/terraform-provider-google.git
synced 2024-07-03 08:42:39 +00:00
Merge pull request #172 from ubschmidt2/testacc_default
Allow for running acceptance tests using the default credentials.
This commit is contained in:
commit
e5d55df82b
|
@ -53,6 +53,7 @@ func testAccPreCheck(t *testing.T) {
|
||||||
"GOOGLE_CREDENTIALS",
|
"GOOGLE_CREDENTIALS",
|
||||||
"GOOGLE_CLOUD_KEYFILE_JSON",
|
"GOOGLE_CLOUD_KEYFILE_JSON",
|
||||||
"GCLOUD_KEYFILE_JSON",
|
"GCLOUD_KEYFILE_JSON",
|
||||||
|
"GOOGLE_USE_DEFAULT_CREDENTIALS",
|
||||||
}
|
}
|
||||||
if v := multiEnvSearch(creds); v == "" {
|
if v := multiEnvSearch(creds); v == "" {
|
||||||
t.Fatalf("One of %s must be set for acceptance tests", strings.Join(creds, ", "))
|
t.Fatalf("One of %s must be set for acceptance tests", strings.Join(creds, ", "))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user