Skip to content

Commit

Permalink
Add requests dep back for integration tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
purple4reina committed Jan 28, 2025
1 parent 1a60db4 commit ef66ae7
Show file tree
Hide file tree
Showing 4 changed files with 986 additions and 10 deletions.
3 changes: 2 additions & 1 deletion tests/integration/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"devDependencies": {
"serverless-plugin-datadog": "^2.18.0"
"serverless-plugin-datadog": "^2.18.0",
"serverless-python-requirements": "^6.1.1"
}
}
4 changes: 0 additions & 4 deletions tests/integration/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1 @@
certifi==2024.12.14
charset-normalizer==3.4.1
idna==3.10
requests==2.32.3
urllib3==2.3.0
8 changes: 4 additions & 4 deletions tests/integration/serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ provider:
iam:
# IAM permissions require that all functions are deployed with this role
role: "arn:aws:iam::425362996713:role/serverless-integration-test-lambda-role"
layers:
- { Ref: PythonLambdaLayer }
- { Ref: PythonRequirementsLambdaLayer }

plugins:
- serverless-python-requirements
Expand All @@ -28,6 +31,7 @@ custom:
pythonRequirements:
dockerizePip: true
dockerRunCmdExtraArgs: ["--platform", "linux/${env:ARCH}"]
dockerImage: python:${env:PYTHON_VERSION}
layer:
compatibleRuntimes:
- ${env:SERVERLESS_RUNTIME}
Expand All @@ -43,8 +47,6 @@ functions:
name: integration-tests-python-${sls:stage}-async-metrics_${env:RUNTIME}
handler: handle.handle
runtime: ${env:SERVERLESS_RUNTIME}
layers:
- { Ref: PythonLambdaLayer }
environment:
DD_FLUSH_TO_LOG: true

Expand All @@ -53,5 +55,3 @@ functions:
name: integration-tests-python-${sls:stage}-sync-metrics_${env:RUNTIME}
handler: handle.handle
runtime: ${env:SERVERLESS_RUNTIME}
layers:
- { Ref: PythonLambdaLayer }
Loading

0 comments on commit ef66ae7

Please sign in to comment.