Skip to content

Commit

Permalink
Add requests dependency to integration tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
purple4reina committed Jan 28, 2025
1 parent 992e388 commit 1a60db4
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
1 change: 1 addition & 0 deletions ci/input_files/build.yaml.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ integration-test ({{ $runtime.name }}-{{ $runtime.arch }}):
- *install-node
- EXTERNAL_ID_NAME=integration-test-externalid ROLE_TO_ASSUME=sandbox-integration-test-deployer AWS_ACCOUNT=425362996713 source ./ci/get_secrets.sh
- yarn global add serverless@^3.38.0 --prefix /usr/local
- yarn global add serverless-python-requirements@^6.1.1 --prefix /usr/local
- cd integration_tests && yarn install && cd ..
script:
- RUNTIME_PARAM={{ $runtime.python_version }} ARCH={{ $runtime.arch }} ./scripts/run_integration_tests.sh
Expand Down
5 changes: 5 additions & 0 deletions tests/integration/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
certifi==2024.12.14
charset-normalizer==3.4.1
idna==3.10
requests==2.32.3
urllib3==2.3.0
11 changes: 11 additions & 0 deletions tests/integration/serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,17 @@ provider:
# IAM permissions require that all functions are deployed with this role
role: "arn:aws:iam::425362996713:role/serverless-integration-test-lambda-role"

plugins:
- serverless-python-requirements

custom:
pythonRequirements:
dockerizePip: true
dockerRunCmdExtraArgs: ["--platform", "linux/${env:ARCH}"]
layer:
compatibleRuntimes:
- ${env:SERVERLESS_RUNTIME}

layers:
python:
package:
Expand Down

0 comments on commit 1a60db4

Please sign in to comment.