From 10bf8628a4c1d55632cbe857999ffba51371ea88 Mon Sep 17 00:00:00 2001 From: Dainis Tillers Date: Tue, 2 Sep 2014 16:49:16 +0300 Subject: [PATCH] Require project id as otherwise it will fail with cryptic error --- provider_test.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/provider_test.go b/provider_test.go index 9139f5fc..976b657a 100644 --- a/provider_test.go +++ b/provider_test.go @@ -36,4 +36,8 @@ func testAccPreCheck(t *testing.T) { if v := os.Getenv("GOOGLE_CLIENT_FILE"); v == "" { t.Fatal("GOOGLE_CLIENT_FILE must be set for acceptance tests") } + + if v := os.Getenv("GOOGLE_PROJECT"); v == "" { + t.Fatal("GOOGLE_PROJECT must be set for acceptance tests") + } }