Skip to content

Commit 9164bda

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

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

scripts/run_integration_tests.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ for parameters_set in "${PARAMETERS_SETS[@]}"; do
109109
echo "Deploying functions for runtime : $parameters_set, serverless runtime : ${!serverless_runtime}, \
110110
python version : ${!python_version} and run id : ${!run_id}"
111111

112-
PYTHON_VERSION=${!python_version} RUNTIME=$parameters_set SERVERLESS_RUNTIME=${!serverless_runtime} ARCH=${ARCH} SLS_ARCH=${SERVERLESS_FRAMEWORK_ARCH} \
112+
PYTHON_VERSION=${!python_version} PYTHON_VERSION_NO_DOT=$(echo ${!python_version} | sed 's/\.//') RUNTIME=$parameters_set SERVERLESS_RUNTIME=${!serverless_runtime} ARCH=${ARCH} SLS_ARCH=${SERVERLESS_FRAMEWORK_ARCH} \
113113
serverless deploy --stage ${!run_id}
114114

115115
echo "Invoking functions for runtime $parameters_set"

tests/integration/serverless.yml

+3-4
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ provider:
2020
iam:
2121
# IAM permissions require that all functions are deployed with this role
2222
role: "arn:aws:iam::425362996713:role/serverless-integration-test-lambda-role"
23+
layers:
24+
- { Ref: PythonLambdaLayer }
25+
- arn:aws:lambda:eu-west-1:770693421928:layer:Klayers-p${env:PYTHON_VERSION_NO_DOT}-requests:17
2326

2427
layers:
2528
python:
@@ -32,8 +35,6 @@ functions:
3235
name: integration-tests-python-${sls:stage}-async-metrics_${env:RUNTIME}
3336
handler: handle.handle
3437
runtime: ${env:SERVERLESS_RUNTIME}
35-
layers:
36-
- { Ref: PythonLambdaLayer }
3738
environment:
3839
DD_FLUSH_TO_LOG: true
3940

@@ -42,5 +43,3 @@ functions:
4243
name: integration-tests-python-${sls:stage}-sync-metrics_${env:RUNTIME}
4344
handler: handle.handle
4445
runtime: ${env:SERVERLESS_RUNTIME}
45-
layers:
46-
- { Ref: PythonLambdaLayer }

0 commit comments

Comments
 (0)