len548 opened a new pull request, #10120:
URL: https://github.com/apache/ozone/pull/10120

   ## What changes were proposed in this pull request?
   There are duplicates of rename tests between `AbstractOzoneFileSystemTest` 
and `AbstractRootedOzoneFileSystemTest`.
   - `testRenameFile`
   - `testRenameFileToDir`
   - `testRenameToParentDir`
   - `testRenameDirToItsOwnSubDir`
   - `testRenameDestinationParentDoesntExist` (O3FS) / 
`testRenameDestinationParentDoesNotExist` (OFS) – same test, different spelling.
   
   This PR moved shared logic of these tests to OzoneFileSystemTestBase and 
also introduced a helper method `pathUnderFsRoot(String p)` which centralizes 
the difference “fs.getUri().toString() + path” (O3FS) vs "getBucketPath() + 
path" (OFS) by template method pattern.
   
   ## What is the link to the Apache JIRA
   https://issues.apache.org/jira/browse/HDDS-15109
   ## How was this patch tested?
   CI pass: https://github.com/len548/ozone/actions/runs/24833798824


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to