Huang Kuan Hao created HDDS-16077:
-------------------------------------

             Summary: Add a Testcontainers module for Ozone
                 Key: HDDS-16077
                 URL: https://issues.apache.org/jira/browse/HDDS-16077
             Project: Apache Ozone
          Issue Type: New Feature
            Reporter: Huang Kuan Hao
            Assignee: Huang Kuan Hao


The goal of this task is to provide a Testcontainers module, so JVM projects 
can start a single-node Ozone with S3 Gateway in integration tests, the same 
way they use the MinIO or LocalStack modules. Ozone has no Testcontainers 
module yet (org.testcontainers is not used anywhere in the repo). Motivated by 
the container-based test-framework interest (e.g. Trino) raised on HDDS-14893.

Scope:
- New published module ozone-testcontainers under hadoop-ozone.
- An OzoneContainer (extends GenericContainer) that runs single-node Ozone with 
S3 Gateway by wrapping the all-in-one image (apache/ozone:<tag>-all-in-one, 
from HDDS-14452 / ozone-docker#49).
- Accessors mirroring the MinIO/LocalStack modules: getS3Endpoint(), 
getAccessKey(), getSecretKey(), getRegion().
- Wait strategy on the S3 Gateway port (9878); a smoke test doing S3 
create/put/get with AWS SDK v2 (path-style + static credentials), skipped when 
Docker is unavailable.

Note: uses the all-in-one image today; a cleaner `ozone local run` based image 
(HDDS-15087) would be a future improvement, not a blocker.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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

Reply via email to