-
Notifications
You must be signed in to change notification settings - Fork 138
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
remote inference: add unit test for create connector request/response #1067
Conversation
Signed-off-by: Yaliang Wu <[email protected]>
Signed-off-by: Yaliang Wu <[email protected]>
Codecov Report
@@ Coverage Diff @@
## 2.x #1067 +/- ##
=========================================
Coverage 77.34% 77.34%
Complexity 2054 2054
=========================================
Files 167 167
Lines 8532 8532
Branches 846 846
=========================================
Hits 6599 6599
Misses 1555 1555
Partials 378 378
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Signed-off-by: Yaliang Wu <[email protected]>
@@ -133,12 +149,15 @@ public static MLCreateConnectorInput parse(XContentParser parser) throws IOExcep | |||
case ACCESS_MODE_FIELD: | |||
access = AccessMode.from(parser.text()); | |||
break; | |||
case DRY_RUN_FIELD: | |||
dryRun = parser.booleanValue(); |
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.
dryRun is mandatory in request?
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.
not mandatory, its default value is false, so it's ok to not use optional method.
…#1067) * remote inference: add unit test for create connector request/response Signed-off-by: Yaliang Wu <[email protected]> * fix failed UT Signed-off-by: Yaliang Wu <[email protected]> * fix failed UT Signed-off-by: Yaliang Wu <[email protected]> --------- Signed-off-by: Yaliang Wu <[email protected]> (cherry picked from commit 1602aea)
…#1067) (#1082) * remote inference: add unit test for create connector request/response Signed-off-by: Yaliang Wu <[email protected]> * fix failed UT Signed-off-by: Yaliang Wu <[email protected]> * fix failed UT Signed-off-by: Yaliang Wu <[email protected]> --------- Signed-off-by: Yaliang Wu <[email protected]> (cherry picked from commit 1602aea) Co-authored-by: Yaliang Wu <[email protected]>
…opensearch-project#1067) * remote inference: add unit test for create connector request/response Signed-off-by: Yaliang Wu <[email protected]> * fix failed UT Signed-off-by: Yaliang Wu <[email protected]> * fix failed UT Signed-off-by: Yaliang Wu <[email protected]> --------- Signed-off-by: Yaliang Wu <[email protected]>
…#1067) * remote inference: add unit test for create connector request/response Signed-off-by: Yaliang Wu <[email protected]> * fix failed UT Signed-off-by: Yaliang Wu <[email protected]> * fix failed UT Signed-off-by: Yaliang Wu <[email protected]> --------- Signed-off-by: Yaliang Wu <[email protected]>
Description
[Describe what this change achieves]
Issues Resolved
[List any issues this PR will resolve]
Check List
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.