Skip to content
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

test: Added a full suite of unit tests for the collector/http-agents #1748

Merged

Conversation

bizob2828
Copy link
Member

In #1745 we will be refactoring the proxy agent. I noticed we lacked unit tests so I asked @mrickard to help adding them. This PR is the suite of tests to improve the proxy agent test coverage

Signed-off-by: mrickard <maurice@mauricerickard.com>
…ssertions

Signed-off-by: mrickard <maurice@mauricerickard.com>
Signed-off-by: mrickard <maurice@mauricerickard.com>
@bizob2828 bizob2828 changed the title tests: Added a full suite of unit tests for the collector/http-agents test: Added a full suite of unit tests for the collector/http-agents Aug 2, 2023
@bizob2828 bizob2828 force-pushed the mrickard/add-http-agent-unit-tests branch from 921cd46 to 6807768 Compare August 2, 2023 19:28
@mrickard
Copy link
Member

mrickard commented Aug 2, 2023

Looks like Node 16 unit tests are failing on the new http-agent test, as it looks for the certificates.

@bizob2828
Copy link
Member Author

Looks like Node 16 unit tests are failing on the new http-agent test, as it looks for the certificates.

Yea that wasn't a true unit test. I updated

@codecov
Copy link

codecov bot commented Aug 2, 2023

Codecov Report

Merging #1748 (6807768) into main (8d66123) will increase coverage by 0.03%.
Report is 4 commits behind head on main.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main    #1748      +/-   ##
==========================================
+ Coverage   96.85%   96.88%   +0.03%     
==========================================
  Files         200      200              
  Lines       39205    39220      +15     
  Branches       23       22       -1     
==========================================
+ Hits        37972    37999      +27     
+ Misses       1233     1221      -12     
Flag Coverage Δ
esm-unit-tests-16.x 92.85% <ø> (+0.42%) ⬆️
esm-unit-tests-18.x 92.85% <ø> (+0.42%) ⬆️
integration-tests-16.x 79.12% <ø> (+<0.01%) ⬆️
integration-tests-18.x 79.11% <ø> (+<0.01%) ⬆️
integration-tests-20.x 79.13% <ø> (+<0.01%) ⬆️
unit-tests-16.x 91.50% <ø> (+0.03%) ⬆️
unit-tests-18.x 91.48% <ø> (+0.03%) ⬆️
unit-tests-20.x 91.48% <ø> (+0.03%) ⬆️
versioned-tests-16.x 77.03% <ø> (-0.08%) ⬇️
versioned-tests-18.x 77.03% <ø> (-0.08%) ⬇️
versioned-tests-20.x 75.87% <ø> (-0.10%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

see 2 files with indirect coverage changes

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

@bizob2828 bizob2828 merged commit 9d4201b into newrelic:main Aug 2, 2023
21 checks passed
Node.js Engineering Board automation moved this from Needs PR Review to Done: Issues recently completed Aug 2, 2023
@github-actions github-actions bot mentioned this pull request Aug 7, 2023
@mrickard mrickard deleted the mrickard/add-http-agent-unit-tests branch October 3, 2023 14:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Node.js Engineering Board
  
Done: Issues recently completed
Development

Successfully merging this pull request may close these issues.

None yet

2 participants