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 :: LhApiVersion -> 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

data LhApiVersion Source #

Constructors

V0 
V1 

Instances

Instances details
Generic LhApiVersion Source # 
Instance details

Defined in Testlib.MockIntegrationService

Associated Types

type Rep LhApiVersion :: Type -> Type #

Show LhApiVersion Source # 
Instance details

Defined in Testlib.MockIntegrationService

type Rep LhApiVersion Source # 
Instance details

Defined in Testlib.MockIntegrationService

type Rep LhApiVersion = D1 ('MetaData "LhApiVersion" "Testlib.MockIntegrationService" "integration-0.1.0-3ATitUsC6IZKz3Fn68yYH1" 'False) (C1 ('MetaCons "V0" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "V1" 'PrefixI 'False) (U1 :: Type -> Type))