Skip to content

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

Merged
merged 9 commits into from
Oct 24, 2022
Merged

fix integration tests #311

merged 9 commits into from
Oct 24, 2022

Conversation

joeyzhao2018
Copy link
Contributor

@joeyzhao2018 joeyzhao2018 commented Oct 14, 2022

What does this PR do?

Motivation

Testing Guidelines

Additional Notes

Types of Changes

  • Bug fix
  • New feature
  • Breaking change
  • Misc (docs, refactoring, dependency upgrade, etc.)

Check all that apply

  • This PR's description is comprehensive
  • This PR contains breaking changes that are documented in the description
  • This PR introduces new APIs or parameters that are documented and unlikely to change in the foreseeable future
  • This PR impacts documentation, and it has been updated (or a ticket has been logged)
  • This PR's changes are covered by the automated tests
  • This PR collects user input/sensitive content into Datadog
  • This PR passes the integration tests (ask a Datadog member to run the tests)

@codecov-commenter
Copy link

codecov-commenter commented Oct 14, 2022

Codecov Report

Merging #311 (5f7fb55) into main (3a579c6) will not change coverage.
The diff coverage is 0.00%.

@@           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           
Impacted Files Coverage Δ
src/trace/patch-http.ts 81.03% <0.00%> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@joeyzhao2018 joeyzhao2018 changed the title remove lambdaHashingVersion fix integration tests Oct 14, 2022
@joeyzhao2018 joeyzhao2018 marked this pull request as ready for review October 14, 2022 13:40
@joeyzhao2018 joeyzhao2018 requested a review from a team as a code owner October 14, 2022 13:40
@@ -7,7 +7,6 @@ provider:
environment:
DD_INTEGRATION_TEST: true
DD_API_KEY: ${env:DD_API_KEY}
lambdaHashingVersion: 20201221
Copy link
Contributor Author

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"
Copy link
Contributor Author

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) {
Copy link
Contributor Author

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.

Copy link
Contributor

@duncanista duncanista left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! 🚀

@joeyzhao2018 joeyzhao2018 merged commit 38453fd into main Oct 24, 2022
@joeyzhao2018 joeyzhao2018 deleted the joey/integration_tests branch October 24, 2022 14:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants