diff --git a/tests/storage/gs_test.go b/tests/storage/gs_test.go index 8b784dfb3..4e3af3ede 100644 --- a/tests/storage/gs_test.go +++ b/tests/storage/gs_test.go @@ -1,10 +1,10 @@ package storage import ( - gs "cloud.google.com/go/storage" + // gs "cloud.google.com/go/storage" // "context" "flag" - "fmt" + // "fmt" "github.com/ohsu-comp-bio/funnel/proto/tes" "github.com/ohsu-comp-bio/funnel/storage" "github.com/ohsu-comp-bio/funnel/tests" @@ -29,17 +29,17 @@ func TestGoogleStorage(t *testing.T) { testBucket := "funnel-e2e-tests-" + tests.RandomString(6) - cli, err := newGsTest() - if err != nil { - t.Fatal(err) - } - err = cli.createBucket(projectID, testBucket) - if err != nil { - t.Fatal(err) - } - defer func() { - cli.deleteBucket(testBucket) - }() + // cli, err := newGsTest() + // if err != nil { + // t.Fatal(err) + // } + // err = cli.createBucket(projectID, testBucket) + // if err != nil { + // t.Fatal(err) + // } + // defer func() { + // cli.deleteBucket(testBucket) + // }() protocol := "gs://" @@ -152,22 +152,22 @@ func TestGoogleStorage(t *testing.T) { } } -type gsTest struct { - client *gs.Client -} - -func newGsTest() (*gsTest, error) { - client, err := gs.NewClient(context.Background()) - return &gsTest{client}, err -} - -func (g *gsTest) createBucket(projectID, bucket string) error { - cli := g.client.Bucket(bucket) - return cli.Create(context.Background(), projectID, nil) -} - -func (g *gsTest) deleteBucket(bucket string) error { - // emptyBucket(g.bucket) - // g.Buckets.Delete(g.bucket) - return nil -} +// type gsTest struct { +// client *gs.Client +// } + +// func newGsTest() (*gsTest, error) { +// client, err := gs.NewClient(context.Background()) +// return &gsTest{client}, err +// } + +// func (g *gsTest) createBucket(projectID, bucket string) error { +// cli := g.client.Bucket(bucket) +// return cli.Create(context.Background(), projectID, nil) +// } + +// func (g *gsTest) deleteBucket(bucket string) error { +// // emptyBucket(g.bucket) +// // g.Buckets.Delete(g.bucket) +// return nil +// }