diff --git a/pkg/bucket/s3_test.go b/pkg/bucket/s3_test.go index 414b90fa..de41c7d0 100644 --- a/pkg/bucket/s3_test.go +++ b/pkg/bucket/s3_test.go @@ -68,6 +68,7 @@ var _ = Describe("S3Bucket", func() { It("should put and get objects", func() { os.Setenv("AWS_ACCESS_KEY_ID", "minioadmin") os.Setenv("AWS_SECRET_ACCESS_KEY", "minioadmin") + os.Setenv("AWS_REGION", "us-east-1") b, err := NewS3Bucket("test", WithEndpointURL("http://localhost:9000"), WithPathStyle()) Expect(err).NotTo(HaveOccurred()) @@ -101,6 +102,7 @@ var _ = Describe("S3Bucket", func() { It("should put unseekable objects", func() { os.Setenv("AWS_ACCESS_KEY_ID", "minioadmin") os.Setenv("AWS_SECRET_ACCESS_KEY", "minioadmin") + os.Setenv("AWS_REGION", "us-east-1") b, err := NewS3Bucket("test", WithEndpointURL("http://localhost:9000"), WithPathStyle()) Expect(err).NotTo(HaveOccurred()) @@ -140,6 +142,7 @@ var _ = Describe("S3Bucket", func() { It("should put objects and get list of objects up to delimiter", func() { os.Setenv("AWS_ACCESS_KEY_ID", "minioadmin") os.Setenv("AWS_SECRET_ACCESS_KEY", "minioadmin") + os.Setenv("AWS_REGION", "us-east-1") b, err := NewS3Bucket("test", WithEndpointURL("http://localhost:9000"), WithPathStyle()) Expect(err).NotTo(HaveOccurred())