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

[FEATURE]Improve test coverage for RemoteModel.java #1382

Closed
dhrubo-os opened this issue Sep 25, 2023 · 5 comments · Fixed by #3205
Closed

[FEATURE]Improve test coverage for RemoteModel.java #1382

dhrubo-os opened this issue Sep 25, 2023 · 5 comments · Fixed by #3205
Assignees
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@dhrubo-os
Copy link
Collaborator

dhrubo-os commented Sep 25, 2023

We need to improve test coverage in our repo.

This issue will target only to improve test coverage for RemoteModel.java

From this url we can see where test coverage is missing for this class: https://app.codecov.io/gh/opensearch-project/ml-commons/blob/2.x/ml-algorithms%2Fsrc%2Fmain%2Fjava%2Forg%2Fopensearch%2Fml%2Fengine%2Falgorithms%2Fremote%2FRemoteModel.java

@dhrubo-os dhrubo-os added enhancement New feature or request untriaged good first issue Good for newcomers and removed untriaged labels Sep 25, 2023
@divitr
Copy link
Contributor

divitr commented Sep 30, 2023

@dhrubo-os I would like to work on this issue. How should I get started?

@dhrubo-os
Copy link
Collaborator Author

Sure.

@dhrubo-os
Copy link
Collaborator Author

Any update on this?

@akolarkunnu
Copy link
Contributor

@dhrubo-os Can you please assign this task to me, I will work on this.

@dhrubo-os
Copy link
Collaborator Author

Sure, I assigned this issue to you. Thanks for looking into this.

akolarkunnu added a commit to akolarkunnu/ml-commons that referenced this issue Nov 7, 2024
Added new tests for missing coverage. Mainly coverage was missing for catching exceptions in the methods initModel() and asyncPredict().
Also renamed some tests to match with testing methods.

Resolves opensearch-project#1382

Signed-off-by: Abdul Muneer Kolarkunnu <[email protected]>
akolarkunnu added a commit to akolarkunnu/ml-commons that referenced this issue Nov 8, 2024
Added new tests for missing coverage. Mainly coverage was missing for catching exceptions in the methods initModel() and asyncPredict().
Also renamed some tests to match with testing methods.

Resolves opensearch-project#1382

Signed-off-by: Abdul Muneer Kolarkunnu <[email protected]>
akolarkunnu added a commit to akolarkunnu/ml-commons that referenced this issue Nov 11, 2024
Added new tests for missing coverage. Mainly coverage was missing for catching exceptions in the methods initModel() and asyncPredict().
Also renamed some tests to match with testing methods.

Resolves opensearch-project#1382

Signed-off-by: Abdul Muneer Kolarkunnu <[email protected]>
akolarkunnu added a commit to akolarkunnu/ml-commons that referenced this issue Nov 12, 2024
Added new tests for missing coverage. Mainly coverage was missing for catching exceptions in the methods initModel() and asyncPredict().
Also renamed some tests to match with testing methods.

Resolves opensearch-project#1382

Signed-off-by: Abdul Muneer Kolarkunnu <[email protected]>
opensearch-trigger-bot bot pushed a commit that referenced this issue Nov 14, 2024
* [FEATURE]Improve test coverage for RemoteModel.java

Added new tests for missing coverage. Mainly coverage was missing for catching exceptions in the methods initModel() and asyncPredict().
Also renamed some tests to match with testing methods.

Resolves #1382

Signed-off-by: Abdul Muneer Kolarkunnu <[email protected]>

* [FEATURE]Improve test coverage for RemoteModel.java

Added new tests for missing coverage. Mainly coverage was missing for catching exceptions in the methods initModel() and asyncPredict().
Also renamed some tests to match with testing methods.

Resolves #1382

Signed-off-by: Abdul Muneer Kolarkunnu <[email protected]>

* [FEATURE]Improve test coverage for RemoteModel.java

Added new tests for missing coverage. Mainly coverage was missing for catching exceptions in the methods initModel() and asyncPredict().
Also renamed some tests to match with testing methods.

Resolves #1382

Signed-off-by: Abdul Muneer Kolarkunnu <[email protected]>

* [FEATURE]Improve test coverage for RemoteModel.java

Added new tests for missing coverage. Mainly coverage was missing for catching exceptions in the methods initModel() and asyncPredict().
Also renamed some tests to match with testing methods.

Resolves #1382

Signed-off-by: Abdul Muneer Kolarkunnu <[email protected]>

---------

Signed-off-by: Abdul Muneer Kolarkunnu <[email protected]>
(cherry picked from commit 45ff4f5)
akolarkunnu added a commit to akolarkunnu/ml-commons that referenced this issue Dec 6, 2024
This PR addresses the first part of this enhancement "Validate if connector payload has all the required fields. If not provided, throw the illegal argument exception".
Validation of fields description, parameters, credential, and request_body are missing. That validations are added in this fix.
Added new test cases correspong to these validations and fixed all failing test cases because of these new validations.

Partially Resolves opensearch-project#1382

Signed-off-by: Abdul Muneer Kolarkunnu <[email protected]>
akolarkunnu added a commit to akolarkunnu/ml-commons that referenced this issue Dec 9, 2024
This PR addresses the first part of this enhancement "Validate if connector payload has all the required fields. If not provided, throw the illegal argument exception".
Validation of fields description, parameters, credential, and request_body are missing. That validations are added in this fix.
Added new test cases correspong to these validations and fixed all failing test cases because of these new validations.

Partially Resolves opensearch-project#1382

Signed-off-by: Abdul Muneer Kolarkunnu <[email protected]>
akolarkunnu added a commit to akolarkunnu/ml-commons that referenced this issue Dec 16, 2024
This PR addresses the first part of this enhancement "Validate if connector payload has all the required fields. If not provided, throw the illegal argument exception".
Validation of fields description, parameters, credential, and request_body are missing. That validations are added in this fix.
Added new test cases correspong to these validations and fixed all failing test cases because of these new validations.

Partially Resolves opensearch-project#1382

Signed-off-by: Abdul Muneer Kolarkunnu <[email protected]>
akolarkunnu added a commit to akolarkunnu/ml-commons that referenced this issue Dec 16, 2024
This PR addresses the first part of this enhancement "Validate if connector payload has all the required fields. If not provided, throw the illegal argument exception".
Validation of fields description, parameters, credential, and request_body are missing. That validations are added in this fix.
Added new test cases correspong to these validations and fixed all failing test cases because of these new validations.

Partially Resolves opensearch-project#1382

Signed-off-by: Abdul Muneer Kolarkunnu <[email protected]>
mingshl pushed a commit that referenced this issue Dec 17, 2024
This PR addresses the first part of this enhancement "Validate if connector payload has all the required fields. If not provided, throw the illegal argument exception".
Validation of fields description, parameters, credential, and request_body are missing. That validations are added in this fix.
Added new test cases correspong to these validations and fixed all failing test cases because of these new validations.

Partially Resolves #1382

Signed-off-by: Abdul Muneer Kolarkunnu <[email protected]>
opensearch-trigger-bot bot pushed a commit that referenced this issue Dec 17, 2024
This PR addresses the first part of this enhancement "Validate if connector payload has all the required fields. If not provided, throw the illegal argument exception".
Validation of fields description, parameters, credential, and request_body are missing. That validations are added in this fix.
Added new test cases correspong to these validations and fixed all failing test cases because of these new validations.

Partially Resolves #1382

Signed-off-by: Abdul Muneer Kolarkunnu <[email protected]>
(cherry picked from commit 58903ba)
tkykenmt pushed a commit to tkykenmt/ml-commons that referenced this issue Dec 25, 2024
…-project#3260)

This PR addresses the first part of this enhancement "Validate if connector payload has all the required fields. If not provided, throw the illegal argument exception".
Validation of fields description, parameters, credential, and request_body are missing. That validations are added in this fix.
Added new test cases correspong to these validations and fixed all failing test cases because of these new validations.

Partially Resolves opensearch-project#1382

Signed-off-by: Abdul Muneer Kolarkunnu <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
3 participants