Require project id as otherwise it will fail with cryptic error

This commit is contained in:
Dainis Tillers 2014-09-02 16:49:16 +03:00
parent b52d323040
commit ebdceac770
1 changed files with 4 additions and 0 deletions

View File

@ -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")
}
}