mirror of
https://github.com/letic/terraform-provider-google.git
synced 2024-07-09 03:28:29 +00:00
Add precheck for acc config tests (#2862)
Signed-off-by: Modular Magician <magic-modules@google.com>
This commit is contained in:
parent
ea98aa7fb3
commit
7f1cfbc87c
|
@ -60,6 +60,7 @@ func TestAccConfigLoadValidate_credentials(t *testing.T) {
|
||||||
if os.Getenv(resource.TestEnvVar) == "" {
|
if os.Getenv(resource.TestEnvVar) == "" {
|
||||||
t.Skip(fmt.Sprintf("Network access not allowed; use %s=1 to enable", resource.TestEnvVar))
|
t.Skip(fmt.Sprintf("Network access not allowed; use %s=1 to enable", resource.TestEnvVar))
|
||||||
}
|
}
|
||||||
|
testAccPreCheck(t)
|
||||||
|
|
||||||
creds := getTestCredsFromEnv()
|
creds := getTestCredsFromEnv()
|
||||||
proj := getTestProjectFromEnv()
|
proj := getTestProjectFromEnv()
|
||||||
|
@ -85,6 +86,7 @@ func TestAccConfigLoadValidate_accessToken(t *testing.T) {
|
||||||
if os.Getenv(resource.TestEnvVar) == "" {
|
if os.Getenv(resource.TestEnvVar) == "" {
|
||||||
t.Skip(fmt.Sprintf("Network access not allowed; use %s=1 to enable", resource.TestEnvVar))
|
t.Skip(fmt.Sprintf("Network access not allowed; use %s=1 to enable", resource.TestEnvVar))
|
||||||
}
|
}
|
||||||
|
testAccPreCheck(t)
|
||||||
|
|
||||||
creds := getTestCredsFromEnv()
|
creds := getTestCredsFromEnv()
|
||||||
proj := getTestProjectFromEnv()
|
proj := getTestProjectFromEnv()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user