Skip to content

HDDS-9922. Migrate TestOzoneFileInterfaces to JUnit5#5838

Merged
adoroszlai merged 2 commits intoapache:masterfrom
adoroszlai:HDDS-9922
Dec 22, 2023
Merged

HDDS-9922. Migrate TestOzoneFileInterfaces to JUnit5#5838
adoroszlai merged 2 commits intoapache:masterfrom
adoroszlai:HDDS-9922

Conversation

@adoroszlai
Copy link
Copy Markdown
Contributor

What changes were proposed in this pull request?

Merge TestOzoneFileInterfaces test cases into AbstractOzoneFileSystemTest. The latter is already on JUnit5, and is run with various parameters via subclasses.

Tweaked assertions related to statistics to check increase in ops. count instead of assuming the stats are all 0 at the start of the test.

https://issues.apache.org/jira/browse/HDDS-9922

How was this patch tested?

CI:
https://github.com/adoroszlai/ozone/actions/runs/7266811043

Copy link
Copy Markdown
Contributor

@hemantk-12 hemantk-12 left a comment

Choose a reason for hiding this comment

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

Thanks @adoroszlai for the patch.

Overall looks good to me. Left a minor comment which can be done as separate PR.

Also assumed the assertTrue(<string>.contains(...)) will be change to assertThat(<string>).contains(...) or assertThat(<exception>).hasMessage(...) in HDDS-9978 or some other jira as part of HDDS-9951.

@adoroszlai adoroszlai merged commit 1b26dd3 into apache:master Dec 22, 2023
@adoroszlai adoroszlai deleted the HDDS-9922 branch December 22, 2023 08:33
@adoroszlai
Copy link
Copy Markdown
Contributor Author

Thanks @hemantk-12 for the review.

xichen01 pushed a commit to xichen01/ozone that referenced this pull request Jul 17, 2024
xichen01 pushed a commit to xichen01/ozone that referenced this pull request Jul 17, 2024
xichen01 pushed a commit to xichen01/ozone that referenced this pull request Jul 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants