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

Refactor mock HTTP server tests #227

Merged
merged 2 commits into from
Dec 12, 2023

Conversation

Xtansia
Copy link
Collaborator

@Xtansia Xtansia commented Dec 10, 2023

Description

Refactors the mock HTTP server tests to simplify the test code.

Splitting up parts of #132

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

@Xtansia Xtansia added the skip-changelog Skip changelog verification label Dec 10, 2023
Copy link

codecov bot commented Dec 10, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (71b677f) 74.00% compared to head (8691aea) 74.00%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #227   +/-   ##
=======================================
  Coverage   74.00%   74.00%           
=======================================
  Files         403      403           
  Lines       64198    64198           
=======================================
  Hits        47508    47508           
  Misses      16690    16690           
Flag Coverage Δ
integration 74.00% <ø> (ø)

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

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

}

pub fn start() -> anyhow::Result<MockServer> {
MockServerBuilder::default().start()
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
MockServerBuilder::default().start()
builder().start()

Signed-off-by: Thomas Farr <[email protected]>
@Xtansia Xtansia merged commit 1035d4e into opensearch-project:main Dec 12, 2023
32 checks passed
@Xtansia Xtansia deleted the refactor/tests branch December 12, 2023 19:40
@Xtansia Xtansia added the backport 2.x Backport to the 2.x branch label Dec 12, 2023
opensearch-trigger-bot bot pushed a commit that referenced this pull request Dec 12, 2023
* Refactor mock http server tests

Signed-off-by: Thomas Farr <[email protected]>

* de-dup code

Signed-off-by: Thomas Farr <[email protected]>

---------

Signed-off-by: Thomas Farr <[email protected]>
(cherry picked from commit 1035d4e)
Xtansia added a commit that referenced this pull request Dec 12, 2023
* Refactor mock http server tests

Signed-off-by: Thomas Farr <[email protected]>

* de-dup code

Signed-off-by: Thomas Farr <[email protected]>

---------

Signed-off-by: Thomas Farr <[email protected]>
(cherry picked from commit 1035d4e)

Co-authored-by: Thomas Farr <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 2.x Backport to the 2.x branch skip-changelog Skip changelog verification
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants