integration-0.1.0
Safe HaskellSafe-Inferred
LanguageGHC2021

Testlib.MockIntegrationService

Synopsis

Documentation

withMockServer Source #

Arguments

:: HasCallStack 
=> MockServerSettings

the mock server settings

-> (Chan e -> LiftedApplication)

The certificate and key pair

-> ((Host, Port) -> Chan e -> App a)

the test

-> App a 

The channel exists to facilitate out of http comms between the test and the service. Could be used for recording (request, response) pairs.

lhMockAppWithPrekeys :: CreateMock App -> Chan (Request, ByteString) -> LiftedApplication Source #

LegalHold service. Just fake the API, do not maintain any internal state.

data CreateMock f Source #

Constructors

MkCreateMock 

Fields

Instances

Instances details
App ~ f => Default (CreateMock f) Source # 
Instance details

Defined in Testlib.MockIntegrationService

Methods

def :: CreateMock f Source #

data MockServerSettings Source #

Constructors

MkMockServerSettings 

Fields

Instances

Instances details
Default MockServerSettings Source # 
Instance details

Defined in Testlib.MockIntegrationService