-
Notifications
You must be signed in to change notification settings - Fork 36
fix integration tests #311
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Codecov Report
@@ Coverage Diff @@
## main #311 +/- ##
=======================================
Coverage 80.05% 80.05%
=======================================
Files 36 36
Lines 1715 1715
Branches 387 387
=======================================
Hits 1373 1373
Misses 290 290
Partials 52 52
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
@@ -7,7 +7,6 @@ provider: | |||
environment: | |||
DD_INTEGRATION_TEST: true | |||
DD_API_KEY: ${env:DD_API_KEY} | |||
lambdaHashingVersion: 20201221 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ran serverless doctor
and found it's deprecated.
@@ -10,7 +10,7 @@ | |||
"author": "", | |||
"license": "ISC", | |||
"dependencies": { | |||
"axios": ">=0.21.2" | |||
"axios": ">=1.1.3" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It turns out that newer versions of axios will add the Accept-Encoding
header to the http requests. Therefore we should update the minimum version here. We also don't want to set the version at a fixed number since this can potentially reveal issues with newer versions of axios.
|
||
if (options.headers) { | ||
const headerStrings = Object.entries(options.headers).map(([name, value]) => `${name}:${value}`); | ||
if (traceHeaders) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of logging all the headers here, only log the relevant ones ,i.e. the Trace context headers.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! 🚀
What does this PR do?
Motivation
Testing Guidelines
Additional Notes
Types of Changes
Check all that apply