Skip to content

Commit 02a92be

Browse files
committed
Configure region for integration tests
1 parent 44744ec commit 02a92be

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

deploy.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@ function releaseToRegion {
1717
echo "publishing layers to region $region"
1818
sam package \
1919
--output-template-file packaged.yaml \
20-
--s3-bucket ${bucket}
20+
--s3-bucket ${bucket} \
21+
--region ${region}
2122
version_="${version//\./_}"
2223
stack_name=r-${version//\./-}
2324
sam deploy \
2425
--template-file packaged.yaml \
2526
--stack-name ${stack_name} \
26-
--capabilities CAPABILITY_IAM \
2727
--parameter-overrides Version=${version_} \
2828
--no-fail-on-empty-changeset \
2929
--region ${region}

integration_test.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ function integrationTest {
1818
sam package \
1919
--output-template-file packaged.yaml \
2020
--s3-bucket ${bucket} \
21-
--template-file test-template.yaml
21+
--template-file test-template.yaml \
22+
--region ${region}
2223
version_="${version//\./_}"
2324
stack_name=r-${version//\./-}-test
2425
sam deploy \
@@ -28,7 +29,7 @@ function integrationTest {
2829
--parameter-overrides Version=${version_} \
2930
--no-fail-on-empty-changeset \
3031
--region ${region}
31-
VERSION=${version_} INTEGRATION_TEST=True pipenv run python -m unittest
32+
VERSION=${version_} INTEGRATION_TEST=True AWS_DEFAULT_REGION=${region} pipenv run python -m unittest
3233
}
3334

3435
regions=(

0 commit comments

Comments
 (0)