Class ObjectStorageMock

java.lang.Object
org.projectnessie.objectstoragemock.ObjectStorageMock

@Immutable public abstract class ObjectStorageMock extends Object
  • Constructor Details

    • ObjectStorageMock

      public ObjectStorageMock()
  • Method Details

    • initAddress

      @Default public String initAddress()
      The hostname with which to create the HTTP server. The default is 127.0.0.1.

      Note: for S3, the default address will generate endpoint URIs that work with S3 clients out of the box, but technically, they are not valid S3 endpoints. If you need compliance, for example to make the endpoint URI parseable by S3Utilities, use s3.127-0-0-1.nip.io instead. Make sure in this case to create your S3 clients with path-style access enforced, because if the endpoint is valid, the client will attempt to use virtual-host-style access by default, which this S3 mock server cannot handle.

    • builder

      public static org.projectnessie.objectstoragemock.ImmutableObjectStorageMock.Builder builder()
    • buckets

      public abstract Map<String,Bucket> buckets()
    • assumeRoleHandler

      @Default public AssumeRoleHandler assumeRoleHandler()
    • start