Skip to content

HDDS-15344. Extract test cases to OzoneFileSystemTestBase part 6.#10401

Open
len548 wants to merge 1 commit into
apache:masterfrom
len548:HDDS-12355-6
Open

HDDS-15344. Extract test cases to OzoneFileSystemTestBase part 6.#10401
len548 wants to merge 1 commit into
apache:masterfrom
len548:HDDS-12355-6

Conversation

@len548
Copy link
Copy Markdown
Contributor

@len548 len548 commented Jun 1, 2026

The following duplicate tests in AbstractOzoneFileSystemTest and AbstractRootedOzoneFileSystemTest are almost identical and worth refactoring.

  • testFileDelete
  • testCreateWithInvalidPaths
  • testFileSystemDeclaresCapability
  • testSetTimes

This PR moved the shared logic into OzoneFileSystemTestBase. For the rest of tests whose names are the same (e.g. testSnapshotRead, testTrash and etc.) I think they are not worth refactoring due to divergence

What is the link to the Apache JIRA

https://issues.apache.org/jira/browse/HDDS-15344
(Parent Jira: https://issues.apache.org/jira/browse/HDDS-12355)

How was this patch tested?

CI passed: https://github.com/len548/ozone/actions/runs/26582324712

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.

1 participant