Skip to content

Commit 1a60db4

Browse files
committed
Add requests dependency to integration tests.
1 parent 992e388 commit 1a60db4

File tree

3 files changed

+17
-0
lines changed

3 files changed

+17
-0
lines changed

ci/input_files/build.yaml.tpl

+1
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ integration-test ({{ $runtime.name }}-{{ $runtime.arch }}):
9898
- *install-node
9999
- EXTERNAL_ID_NAME=integration-test-externalid ROLE_TO_ASSUME=sandbox-integration-test-deployer AWS_ACCOUNT=425362996713 source ./ci/get_secrets.sh
100100
- yarn global add serverless@^3.38.0 --prefix /usr/local
101+
- yarn global add serverless-python-requirements@^6.1.1 --prefix /usr/local
101102
- cd integration_tests && yarn install && cd ..
102103
script:
103104
- RUNTIME_PARAM={{ $runtime.python_version }} ARCH={{ $runtime.arch }} ./scripts/run_integration_tests.sh

tests/integration/requirements.txt

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
certifi==2024.12.14
2+
charset-normalizer==3.4.1
3+
idna==3.10
4+
requests==2.32.3
5+
urllib3==2.3.0

tests/integration/serverless.yml

+11
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,17 @@ provider:
2121
# IAM permissions require that all functions are deployed with this role
2222
role: "arn:aws:iam::425362996713:role/serverless-integration-test-lambda-role"
2323

24+
plugins:
25+
- serverless-python-requirements
26+
27+
custom:
28+
pythonRequirements:
29+
dockerizePip: true
30+
dockerRunCmdExtraArgs: ["--platform", "linux/${env:ARCH}"]
31+
layer:
32+
compatibleRuntimes:
33+
- ${env:SERVERLESS_RUNTIME}
34+
2435
layers:
2536
python:
2637
package:

0 commit comments

Comments
 (0)