Skip to content

Commit ef66ae7

Browse files
committed
Add requests dep back for integration tests.
1 parent 1a60db4 commit ef66ae7

File tree

4 files changed

+986
-10
lines changed

4 files changed

+986
-10
lines changed

tests/integration/package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"devDependencies": {
3-
"serverless-plugin-datadog": "^2.18.0"
3+
"serverless-plugin-datadog": "^2.18.0",
4+
"serverless-python-requirements": "^6.1.1"
45
}
56
}

tests/integration/requirements.txt

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

tests/integration/serverless.yml

+4-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+
- { Ref: PythonRequirementsLambdaLayer }
2326

2427
plugins:
2528
- serverless-python-requirements
@@ -28,6 +31,7 @@ custom:
2831
pythonRequirements:
2932
dockerizePip: true
3033
dockerRunCmdExtraArgs: ["--platform", "linux/${env:ARCH}"]
34+
dockerImage: python:${env:PYTHON_VERSION}
3135
layer:
3236
compatibleRuntimes:
3337
- ${env:SERVERLESS_RUNTIME}
@@ -43,8 +47,6 @@ functions:
4347
name: integration-tests-python-${sls:stage}-async-metrics_${env:RUNTIME}
4448
handler: handle.handle
4549
runtime: ${env:SERVERLESS_RUNTIME}
46-
layers:
47-
- { Ref: PythonLambdaLayer }
4850
environment:
4951
DD_FLUSH_TO_LOG: true
5052

@@ -53,5 +55,3 @@ functions:
5355
name: integration-tests-python-${sls:stage}-sync-metrics_${env:RUNTIME}
5456
handler: handle.handle
5557
runtime: ${env:SERVERLESS_RUNTIME}
56-
layers:
57-
- { Ref: PythonLambdaLayer }

0 commit comments

Comments
 (0)