[FEATURE] Improve test coverage for MLHttpClientFactory.java#3644
Merged
dhrubo-os merged 5 commits intoopensearch-project:mainfrom Mar 20, 2025
Merged
[FEATURE] Improve test coverage for MLHttpClientFactory.java#3644dhrubo-os merged 5 commits intoopensearch-project:mainfrom
dhrubo-os merged 5 commits intoopensearch-project:mainfrom
Conversation
Improved the test coverage by adding edge cases. The if check (bytes.length != 4) is an unreachable code, Inet4Address always will have array of 4 bytes address. Resolves opensearch-project#1379 Signed-off-by: Abdul Muneer Kolarkunnu <muneer.kolarkunnu@netapp.com>
Contributor
Author
Contributor
Author
|
linux (21) - Known flaky org.opensearch.ml.rest.RestMLRemoteInferenceIT.testPredictWithAutoDeployAndTTL_RemoteModel #3544 Windows (23) - This is a test only change, failures are not related to the code changes. |
Contributor
Author
|
Hi Maintainers, Any comments, please. |
Collaborator
Can you take updates from main? |
dhrubo-os
reviewed
Mar 17, 2025
ml-algorithms/src/test/java/org/opensearch/ml/engine/httpclient/MLHttpClientFactoryTests.java
Show resolved
Hide resolved
dhrubo-os
reviewed
Mar 17, 2025
ml-algorithms/src/test/java/org/opensearch/ml/engine/httpclient/MLHttpClientFactoryTests.java
Show resolved
Hide resolved
Improved the test coverage by adding edge cases. The if check (bytes.length != 4) is an unreachable code, Inet4Address always will have array of 4 bytes address. Resolves opensearch-project#1379 Signed-off-by: Abdul Muneer Kolarkunnu <muneer.kolarkunnu@netapp.com>
Contributor
Author
Done. |
dhrubo-os
reviewed
Mar 18, 2025
ml-algorithms/src/test/java/org/opensearch/ml/engine/httpclient/MLHttpClientFactoryTests.java
Outdated
Show resolved
Hide resolved
Collaborator
This PR is merged. Please rebase again. |
Contributor
Author
Ok, done. |
Improved the test coverage by adding edge cases. The if check (bytes.length != 4) is an unreachable code, Inet4Address always will have array of 4 bytes address. Resolves opensearch-project#1379 Signed-off-by: Abdul Muneer Kolarkunnu <muneer.kolarkunnu@netapp.com>
dhrubo-os
approved these changes
Mar 19, 2025
mingshl
approved these changes
Mar 20, 2025
Collaborator
|
Thanks @akolarkunnu for working on this. Merging the PR. |
akolarkunnu
added a commit
to akolarkunnu/ml-commons
that referenced
this pull request
Jun 6, 2025
…rch-project#3644) * [FEATURE] Improve test coverage for MLHttpClientFactory.java Improved the test coverage by adding edge cases. The if check (bytes.length != 4) is an unreachable code, Inet4Address always will have array of 4 bytes address. Resolves opensearch-project#1379 Signed-off-by: Abdul Muneer Kolarkunnu <muneer.kolarkunnu@netapp.com> * [FEATURE] Improve test coverage for MLHttpClientFactory.java Improved the test coverage by adding edge cases. The if check (bytes.length != 4) is an unreachable code, Inet4Address always will have array of 4 bytes address. Resolves opensearch-project#1379 Signed-off-by: Abdul Muneer Kolarkunnu <muneer.kolarkunnu@netapp.com> * [FEATURE] Improve test coverage for MLHttpClientFactory.java Improved the test coverage by adding edge cases. The if check (bytes.length != 4) is an unreachable code, Inet4Address always will have array of 4 bytes address. Resolves opensearch-project#1379 Signed-off-by: Abdul Muneer Kolarkunnu <muneer.kolarkunnu@netapp.com> --------- Signed-off-by: Abdul Muneer Kolarkunnu <muneer.kolarkunnu@netapp.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Description
Improved the test coverage by adding edge cases.
The if check (bytes.length != 4) is an unreachable code, Inet4Address always will have array of 4 bytes address.
Related Issues
Resolves #1379
Check List
--signoff.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.