From a877febf75be114073ac45e135452bfdb6a594e9 Mon Sep 17 00:00:00 2001 From: Evangelos Foutras Date: Mon, 6 Jun 2022 18:32:10 +0300 Subject: [PATCH] Use fake credentials in storage/chunk/storage tests (#6187) Enable insecure mode for the GCS client so fake credentials are used when running the storage tests (see commit c0cc004333b1 ("gcs client: use fake credentials in unit test"). Fixes: https://github.com/grafana/loki/issues/6185 --- pkg/storage/chunk/client/gcp/fixtures.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkg/storage/chunk/client/gcp/fixtures.go b/pkg/storage/chunk/client/gcp/fixtures.go index 8037193c60ba..06debee43d08 100644 --- a/pkg/storage/chunk/client/gcp/fixtures.go +++ b/pkg/storage/chunk/client/gcp/fixtures.go @@ -83,7 +83,10 @@ func (f *fixture) Clients() ( if f.gcsObjectClient { var c *GCSObjectClient - c, err = newGCSObjectClient(ctx, GCSConfig{BucketName: "chunks"}, hedging.Config{}, func(ctx context.Context, opts ...option.ClientOption) (*storage.Client, error) { + c, err = newGCSObjectClient(ctx, GCSConfig{ + BucketName: "chunks", + Insecure: true, + }, hedging.Config{}, func(ctx context.Context, opts ...option.ClientOption) (*storage.Client, error) { return f.gcssrv.Client(), nil }) if err != nil {