peterxcli opened a new pull request, #7753: URL: https://github.com/apache/ozone/pull/7753
## What changes were proposed in this pull request? S3 Gateway unit tests, when creating various endpoints, have to manually set dependencies (`OzoneConfiguration`, `RequestIdentifier`, etc.) that are injected in production env. We can add a builder for each endpoint to allow creating instances with default or custom dependencies. Notice that the `TestMultipartUploadWithCopy` is not applied to use the endpoint builder at this time. As it we have to further refactor the `CopyIfTimestampTestCase` enum in it to prevent `Write to static field XXX from instance method XXX` error found by findbugs check. see: https://github.com/apache/ozone/commit/d686161d537c5207f9e87b3f2fa96fa80dd785c7 ## What is the link to the Apache JIRA https://issues.apache.org/jira/browse/HDDS-12117 ## How was this patch tested? This patch does refactor the endpoint test of s3g CI: https://github.com/peterxcli/ozone/actions/runs/12973035249 -- 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]
