-
Notifications
You must be signed in to change notification settings - Fork 34
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
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
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
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
551f948
to
c7da884
Compare
opensearch/tests/common/server.rs
Outdated
} | ||
|
||
pub fn start() -> anyhow::Result<MockServer> { | ||
MockServerBuilder::default().start() |
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.
MockServerBuilder::default().start() | |
builder().start() |
Signed-off-by: Thomas Farr <[email protected]>
Signed-off-by: Thomas Farr <[email protected]>
c7da884
to
8691aea
Compare
* 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)
* 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]>
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.