mirror of
https://github.com/letic/terraform-provider-google.git
synced 2024-09-06 00:56:43 +00:00
Merge pull request #6574 from uber/b-gcp-acc-test-env
provider/google: correct error messages in acceptance tests
This commit is contained in:
commit
8c7dcec8de
@ -63,7 +63,7 @@ func testAccPreCheck(t *testing.T) {
|
|||||||
"CLOUDSDK_CORE_PROJECT",
|
"CLOUDSDK_CORE_PROJECT",
|
||||||
}
|
}
|
||||||
if v := multiEnvSearch(projs); v == "" {
|
if v := multiEnvSearch(projs); 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(projs, ", "))
|
||||||
}
|
}
|
||||||
|
|
||||||
regs := []string{
|
regs := []string{
|
||||||
@ -71,8 +71,8 @@ func testAccPreCheck(t *testing.T) {
|
|||||||
"GCLOUD_REGION",
|
"GCLOUD_REGION",
|
||||||
"CLOUDSDK_COMPUTE_REGION",
|
"CLOUDSDK_COMPUTE_REGION",
|
||||||
}
|
}
|
||||||
if v := multiEnvSearch(regs); v != "us-central-1" {
|
if v := multiEnvSearch(regs); v != "us-central1" {
|
||||||
t.Fatalf("One of %s must be set to us-central-1 for acceptance tests", strings.Join(creds, ", "))
|
t.Fatalf("One of %s must be set to us-central1 for acceptance tests", strings.Join(regs, ", "))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user