Skip to content

Commit

Permalink
Merge pull request #349 from hashicorp/b-gcs-test
Browse files Browse the repository at this point in the history
gcs: only run oauth test if env var is set
  • Loading branch information
schmichael committed Jan 3, 2022
2 parents f5cbbb4 + ca38515 commit b1336de
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions get_gcs_test.go
Expand Up @@ -239,6 +239,9 @@ func TestGCSGetter_Url(t *testing.T) {
}

func TestGCSGetter_GetFile_OAuthAccessToken(t *testing.T) {
if os.Getenv("GOOGLE_OAUTH_ACCESS_TOKEN") == "" {
t.Skip("Skipping; set GOOGLE_OAUTH_ACCESS_TOKEN to run")
}
g := new(GCSGetter)
dst := tempTestFile(t)
defer os.RemoveAll(filepath.Dir(dst))
Expand Down

0 comments on commit b1336de

Please sign in to comment.