Interface ObjectStorageBucketConfig


public interface ObjectStorageBucketConfig
Configuration for a named object-storage bucket used in integration tests / dev mode.

Use the static factory methods to create configurations for the different backend types:

Pass instances to TestKit.Settings.withObjectStorageBucket(ObjectStorageBucketConfig).

  • Method Details

    • name

      String name()
      The logical bucket name as used in SDK calls.
    • filesystem

      static ObjectStorageBucketConfig filesystem(String name)
      Filesystem-backed bucket. Objects are stored under <dev-base-directory>/<name>.
      Parameters:
      name - logical bucket name
    • filesystem

      static ObjectStorageBucketConfig filesystem(String name, String directory)
      Filesystem-backed bucket with an explicit storage directory.
      Parameters:
      name - logical bucket name
      directory - absolute path to the directory where objects are stored
    • s3

      static ObjectStorageBucketConfig s3(String name, String bucket, String region, ObjectStorageBucketConfig.S3Credentials credentials)
      S3-backed bucket (Amazon S3 or S3-compatible, e.g. MinIO).
      Parameters:
      name - logical bucket name
      bucket - actual S3 bucket name in the cloud / local service
      region - AWS region, e.g. "us-east-1"
      credentials - credentials to authenticate with S3
    • gcs

      GCS-backed bucket (Google Cloud Storage).
      Parameters:
      name - logical bucket name
      bucket - actual GCS bucket name
      credentials - credentials to authenticate with GCS