Skip to content

Commit

Permalink
Add environment env AWS_REGION
Browse files Browse the repository at this point in the history
  • Loading branch information
takara9 committed May 31, 2024
1 parent 974a8b4 commit e3d2074
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/bucket/s3_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down Expand Up @@ -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())
Expand Down Expand Up @@ -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())
Expand Down

0 comments on commit e3d2074

Please sign in to comment.