-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Make verifier return type as ActionResponse #7167
Conversation
A change in test code. CHANGELOG update is not required. |
Gradle Check (Jenkins) Run Completed with:
|
Gradle Check (Jenkins) Run Completed with:
|
@heemin32 please look at gradle check changes? |
Test failed with |
Signed-off-by: Heemin Kim <heemin@amazon.com>
Gradle Check (Jenkins) Run Completed with:
|
Codecov Report
📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more @@ Coverage Diff @@
## main #7167 +/- ##
============================================
- Coverage 70.63% 70.60% -0.03%
- Complexity 59480 59482 +2
============================================
Files 4859 4859
Lines 285492 285492
Branches 41143 41143
============================================
- Hits 201645 201564 -81
- Misses 67270 67344 +74
- Partials 16577 16584 +7
... and 469 files with indirect coverage changes Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
@dblock Could you review? |
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.
Are you going to use this in a future PR or another repo? Seems innocent enough so we can merge, but maybe next time also bring the new usage in in the same place.
Signed-off-by: Heemin Kim <heemin@amazon.com> (cherry picked from commit 8386d10) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
One example where return value is needed. https://github.com/opensearch-project/geospatial/pull/271/files#diff-f8b944446745642b4f5a7cb15be03faa0045246ee03fb3b99f006b941d04049aR214 Without return value, cannot test the code in listener unless we extract that part as a separate method and make it as visible for testing. |
(cherry picked from commit 8386d10) Signed-off-by: Heemin Kim <heemin@amazon.com> Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Thanks @heemin32. If you think it's useful, consider adding something in this repo so that we don't break it in the future. |
Signed-off-by: Heemin Kim <heemin@amazon.com> Signed-off-by: Shivansh Arora <hishiv@amazon.com>
Description
According to the comment, verifier should return either a subclass of ActionResponse or null. With previous signature, it can only return null. This commit allows the verifier to return a subclass of ActionResponse so that test case can return a desired ActionResponse.
Issues Resolved
N/A
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.