Skip to content

test: Added unit tests for HttpCollectorWire. #1565

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 6 commits into from
Apr 24, 2023

Conversation

tippmar-nr
Copy link
Member

@tippmar-nr tippmar-nr commented Apr 20, 2023

Thank you for submitting a pull request. Please review our contributing guidelines and code of conduct.

Description

Adds unit tests for HttpCollectorWire. Also adds the Moq mocking framework to Core.UnitTest.

Minor refactoring in HttpCollectorWire.

Also updates Castle.Core to v4.4.1 and Castle.Windsor to v5.1.1 everywhere in the application, to resolve dependency conflicts on Moq. This change may carry additional risk, so we may end up needing to revert it if there are issues with unit or integration tests or if we feel the risk is simply too great.

Author Checklist

  • Unit tests, Integration tests, and Unbounded tests completed
  • Performance testing completed with satisfactory results (if required)

Reviewer Checklist

  • Perform code review
  • Pull request was adequately tested (new/existing tests, performance tests)

nrcventura
nrcventura previously approved these changes Apr 21, 2023
chynesNR
chynesNR previously approved these changes Apr 21, 2023
@tippmar-nr tippmar-nr dismissed stale reviews from chynesNR and nrcventura via a6eecf7 April 21, 2023 17:06
@codecov-commenter
Copy link

codecov-commenter commented Apr 21, 2023

Codecov Report

Merging #1565 (b68c005) into main (0ff3ddd) will increase coverage by 1.88%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1565      +/-   ##
==========================================
+ Coverage   73.03%   74.91%   +1.88%     
==========================================
  Files         408      408              
  Lines       25581    25577       -4     
==========================================
+ Hits        18682    19162     +480     
+ Misses       6899     6415     -484     
Impacted Files Coverage Δ
...elic/Agent/Core/DataTransport/HttpCollectorWire.cs 86.22% <100.00%> (+86.22%) ⬆️

... and 8 files with indirect coverage changes

chynesNR
chynesNR previously approved these changes Apr 21, 2023
nrcventura
nrcventura previously approved these changes Apr 21, 2023
@tippmar-nr tippmar-nr dismissed stale reviews from nrcventura and chynesNR via b68c005 April 21, 2023 20:01
@tippmar-nr tippmar-nr changed the title test: Added unit tests for HttpCollectorWire, added Moq to Core.UnitTest project. test: Added unit tests for HttpCollectorWire. Apr 24, 2023
@tippmar-nr tippmar-nr merged commit 7bac3f2 into main Apr 24, 2023
@tippmar-nr tippmar-nr deleted the other/http-collector-wire-unit-tests branch April 24, 2023 13:55
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.

4 participants