Skip to content

Commit b1336de

Browse files
authored
Merge pull request #349 from hashicorp/b-gcs-test
gcs: only run oauth test if env var is set
2 parents f5cbbb4 + ca38515 commit b1336de

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

get_gcs_test.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,9 @@ func TestGCSGetter_Url(t *testing.T) {
239239
}
240240

241241
func TestGCSGetter_GetFile_OAuthAccessToken(t *testing.T) {
242+
if os.Getenv("GOOGLE_OAUTH_ACCESS_TOKEN") == "" {
243+
t.Skip("Skipping; set GOOGLE_OAUTH_ACCESS_TOKEN to run")
244+
}
242245
g := new(GCSGetter)
243246
dst := tempTestFile(t)
244247
defer os.RemoveAll(filepath.Dir(dst))

0 commit comments

Comments
 (0)