httpreplay: fix test to use creds file

Application default creds don't work on Travis.

Change-Id: Ic2f25e4b1875f2851dc1c4b9a075ffbcf0c53bb4
Reviewed-on: https://code-review.googlesource.com/27411
Reviewed-by: kokoro <noreply+kokoro@google.com>
Reviewed-by: Jean de Klerk <deklerk@google.com>
diff --git a/httpreplay/httpreplay_test.go b/httpreplay/httpreplay_test.go
index cd2d007..d8a1600 100644
--- a/httpreplay/httpreplay_test.go
+++ b/httpreplay/httpreplay_test.go
@@ -29,6 +29,9 @@
 )
 
 func TestIntegration_RecordAndReplay(t *testing.T) {
+	if testing.Short() {
+		t.Skip("Integration tests skipped in short mode")
+	}
 	f, err := ioutil.TempFile("", "httpreplay")
 	if err != nil {
 		t.Fatal(err)
@@ -49,7 +52,8 @@
 	if err != nil {
 		t.Fatal(err)
 	}
-	hc, err := rec.Client(ctx, option.WithScopes(storage.ScopeFullControl))
+	hc, err := rec.Client(ctx, option.WithTokenSource(
+		testutil.TokenSource(ctx, storage.ScopeFullControl)))
 	if err != nil {
 		t.Fatal(err)
 	}