Skip to content

Commit

Permalink
set dummy credentials
Browse files Browse the repository at this point in the history
  • Loading branch information
fujiwara committed Jun 13, 2024
1 parent 4622440 commit 7d9a581
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tfstate/remote_s3_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ var testBuckets = []struct {
}

func TestBucketRegion(t *testing.T) {
t.Setenv("AWS_ACCESS_KEY_ID", "DUMMY") // s3/manager.GetBucketRegion requires credentials
t.Setenv("AWS_SECRET_ACCESS_KEY", "DUMMY")
for _, b := range testBuckets {
region, err := tfstate.GetBucketRegion(b.bucket)
if err != nil {
Expand Down

0 comments on commit 7d9a581

Please sign in to comment.