Skip to content

Commit

Permalink
Add AWS_REGION=us-east-1 to bats tests to prevent aws-cli v2 from try…
Browse files Browse the repository at this point in the history
…ing to access imds and failing
  • Loading branch information
trnubo committed Jan 17, 2024
1 parent 7f177e5 commit b6a6214
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/s3-rollback.bats
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ teardown_file() {
# Upload v1
docker run --rm \
-e AWS_ENDPOINT_OVERRIDE=http://${minio_container_ip}:9000 \
-e AWS_REGION=us-east-1 \
-e AWS_ACCESS_KEY_ID=AKIAIOSFODNN7EXAMPLE \
-e AWS_SECRET_ACCESS_KEY=wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY \
-e AWS_BUCKET_NAME=test-bucket \
Expand All @@ -59,6 +60,7 @@ teardown_file() {
# Upload v1
docker run --rm \
-e AWS_ENDPOINT_OVERRIDE=http://${minio_container_ip}:9000 \
-e AWS_REGION=us-east-1 \
-e AWS_ACCESS_KEY_ID=AKIAIOSFODNN7EXAMPLE \
-e AWS_SECRET_ACCESS_KEY=wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY \
-e AWS_BUCKET_NAME=test-bucket \
Expand All @@ -76,6 +78,7 @@ teardown_file() {
# Upload v1
docker run --rm \
-e AWS_ENDPOINT_OVERRIDE=http://${minio_container_ip}:9000 \
-e AWS_REGION=us-east-1 \
-e AWS_ACCESS_KEY_ID=AKIAIOSFODNN7EXAMPLE \
-e AWS_SECRET_ACCESS_KEY=wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY \
-e AWS_BUCKET_NAME=test-bucket \
Expand Down
2 changes: 2 additions & 0 deletions tests/s3-upgrade.bats
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ setup_file() {
# Upload v1
docker run --rm \
-e AWS_ENDPOINT_OVERRIDE=http://${minio_container_ip}:9000 \
-e AWS_REGION=us-east-1 \
-e AWS_ACCESS_KEY_ID=AKIAIOSFODNN7EXAMPLE \
-e AWS_SECRET_ACCESS_KEY=wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY \
-e AWS_BUCKET_NAME=test-bucket \
Expand Down Expand Up @@ -81,6 +82,7 @@ teardown_file() {
@test "s3-upgrade upload v2" {
run docker run --rm \
-e AWS_ENDPOINT_OVERRIDE=http://${minio_container_ip}:9000 \
-e AWS_REGION=us-east-1 \
-e AWS_ACCESS_KEY_ID=AKIAIOSFODNN7EXAMPLE \
-e AWS_SECRET_ACCESS_KEY=wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY \
-e AWS_BUCKET_NAME=test-bucket \
Expand Down
1 change: 1 addition & 0 deletions tests/s3.bats
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ setup_file() {
# Upload a test site
docker run --rm \
-e AWS_ENDPOINT_OVERRIDE=http://${minio_container_ip}:9000 \
-e AWS_REGION=us-east-1 \
-e AWS_ACCESS_KEY_ID=AKIAIOSFODNN7EXAMPLE \
-e AWS_SECRET_ACCESS_KEY=wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY \
-e AWS_BUCKET_NAME=test-bucket \
Expand Down

0 comments on commit b6a6214

Please sign in to comment.