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

Exception flow clean up and Test cases clean up #5204

Merged
merged 8 commits into from
Nov 20, 2024

Conversation

san81
Copy link
Contributor

@san81 san81 commented Nov 19, 2024

Description

  • Cleaned up the execution flow by removing the continue; statements and forcing all the failures to fall into one catch block and handle at one place.
  • Added addition unit tests
  • Reduced mock usage in the unit tests. Tried using real objects wherever possible and assert with real values to make the tests more reliable
  • Removed class scope mocks that are causing conflicts with repeated runs

Issues Resolved

Resolves #[Issue number to be closed when this PR is merged]

Check List

  • New functionality includes testing.
  • New functionality has a documentation issue. Please link to it in this PR.
    • New functionality has javadoc added
  • Commits are signed with a real name per the DCO

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.

kkondaka and others added 3 commits November 18, 2024 19:45
Signed-off-by: Kondaka <krishkdk@amazon.com>
…ymore

Signed-off-by: Santhosh Gandhe <1909520+san81@users.noreply.github.com>
Signed-off-by: Santhosh Gandhe <1909520+san81@users.noreply.github.com>
metrics renaming

Signed-off-by: Santhosh Gandhe <1909520+san81@users.noreply.github.com>
@san81 san81 changed the title Kk flow clean up Exception flow clean up and Test cases clean up Nov 20, 2024
Signed-off-by: Santhosh Gandhe <1909520+san81@users.noreply.github.com>
Signed-off-by: Santhosh Gandhe <1909520+san81@users.noreply.github.com>
Signed-off-by: Santhosh Gandhe <1909520+san81@users.noreply.github.com>
Signed-off-by: Santhosh Gandhe <1909520+san81@users.noreply.github.com>
@kkondaka kkondaka merged commit f3bcd6e into opensearch-project:main Nov 20, 2024
46 of 47 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants