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

HDDS-11480. Refactor OM volume response tests #7265

Conversation

harryteng9527
Copy link
Contributor

What changes were proposed in this pull request?

This PR extracts the bootstrap methods (setup(), tearDown()) used in the following OM volume response tests to reduce redundant code by allowing the tests to inherit from a superclass:

  • TestOMVolumeCreateResponse
  • TestOMVolumeDeleteResponse
  • TestOMVolumeSetOwnerResponse
  • TestOMVolumeSetQuotaResponse

What is the link to the Apache JIRA

HDDS-11480. Refactor OM volume response tests

How was this patch tested?

  • Pass all unit test

@ivandika3 ivandika3 self-requested a review October 3, 2024 01:26
Copy link
Contributor

@ivandika3 ivandika3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@harryteng9527 Thanks for picking this up. Overall looks good. Could you help resolve the checkstyle and rat (license) failure first?

Copy link
Contributor

@sarvekshayr sarvekshayr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @harryteng9527 for this patch.
LGTM, waiting for green CI.

Copy link
Contributor

@ivandika3 ivandika3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@harryteng9527 Thanks for the update. LGTM +1.

@ivandika3 ivandika3 merged commit 5d2bbc3 into apache:master Oct 3, 2024
28 checks passed
@ivandika3
Copy link
Contributor

Thanks @harryteng9527 for the patch and @sarvekshayr for the review.

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