sandwich-contexts-0.3.0.2: Contexts for the Sandwich test library
Safe HaskellNone
LanguageHaskell2010

Test.Sandwich.Contexts.Types.S3

Description

Helper module for working with S3 servers.

Synopsis

Documentation

data TestS3Server Source #

A generic test S3 server. This can be used by downstream packages like sandwich-contexts-minio.

Constructors

TestS3Server 

Fields

data HttpMode Source #

Constructors

HttpModeHttp 
HttpModeHttps 
HttpModeHttpsNoValidate

A special mode to allow a server to run in HTTPS mode, but connect to it without HTTPS validation. Useful for tests.

Instances

Instances details
Show HttpMode Source # 
Instance details

Defined in Test.Sandwich.Contexts.Types.S3

Eq HttpMode Source # 
Instance details

Defined in Test.Sandwich.Contexts.Types.S3

Contexts

type HasTestS3Server context = HasLabel context "testS3Server" TestS3Server Source #

Endpoints

testS3ServerEndpoint :: TestS3Server -> Text Source #

Generate an S3 connection string for the given server.

testS3ServerContainerEndpoint :: TestS3Server -> Maybe Text Source #

Generate an S3 connection string for the given containerized server, for the network address inside the container. Returns Nothing if this server isn't containerized.

Misc

s3Protocol :: TestS3Server -> Text Source #

Return either "http" or "https", based on the testS3ServerHttpMode.