Skip to content

Commit 4028435

Browse files
committed
Fix test cases
Signed-off-by: Xiaochao Dong (@damnever) <the.xcdong@gmail.com>
1 parent 4ef5e61 commit 4028435

File tree

2 files changed

+11
-8
lines changed

2 files changed

+11
-8
lines changed

pkg/cortex/cortex_test.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@ func TestCortex(t *testing.T) {
5353
Bucket: bucket.Config{
5454
Backend: bucket.S3,
5555
S3: s3.Config{
56-
Endpoint: "localhost",
56+
Endpoint: "localhost",
57+
BucketLookupType: s3.BucketPathLookup,
5758
},
5859
},
5960
},
@@ -71,7 +72,8 @@ func TestCortex(t *testing.T) {
7172
Bucket: bucket.Config{
7273
Backend: bucket.S3,
7374
S3: s3.Config{
74-
Endpoint: "localhost",
75+
Endpoint: "localhost",
76+
BucketLookupType: s3.BucketPathLookup,
7577
},
7678
},
7779
BucketStore: tsdb.BucketStoreConfig{

pkg/storage/bucket/sse_bucket_client_test.go

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,13 @@ func TestSSEBucketClient_Upload_ShouldInjectCustomSSEConfig(t *testing.T) {
4848
defer srv.Close()
4949

5050
s3Cfg := s3.Config{
51-
Endpoint: srv.Listener.Addr().String(),
52-
Region: "test",
53-
BucketName: "test-bucket",
54-
SecretAccessKey: flagext.Secret{Value: "test"},
55-
AccessKeyID: "test",
56-
Insecure: true,
51+
Endpoint: srv.Listener.Addr().String(),
52+
Region: "test",
53+
BucketName: "test-bucket",
54+
SecretAccessKey: flagext.Secret{Value: "test"},
55+
AccessKeyID: "test",
56+
Insecure: true,
57+
BucketLookupType: s3.BucketPathLookup,
5758
}
5859

5960
s3Client, err := s3.NewBucketClient(s3Cfg, "test", log.NewNopLogger())

0 commit comments

Comments
 (0)