sandwich-contexts-kubernetes
Safe HaskellNone
LanguageHaskell2010

Test.Sandwich.Contexts.Kubernetes.MinioS3Server

Description

Install MinIO S3 servers onto a Kubernetes cluster.

Such a server is provided as a generic TestS3Server, so that you can easily run the same tests against both Kubernetes environments and normal ones. See for example the sandwich-contexts-minio package.

Synopsis

Documentation

introduceK8SMinioS3Server Source #

Arguments

:: forall context (m :: Type -> Type). (Typeable context, KubectlBasicWithoutReader context m, HasMinioOperatorContext context) 
=> MinioS3ServerOptions

Options

-> SpecFree (LabelValue "testS3Server" TestS3Server :> context) m () 
-> SpecFree context m () 

Introduce a MinIO server on a Kubernetes cluster. Must have a minioOperator context.

introduceK8SMinioS3Server' Source #

Arguments

:: forall context (m :: Type -> Type). (Typeable context, KubectlBasic context m, HasMinioOperatorContext context) 
=> KubernetesClusterContext 
-> MinioS3ServerOptions

Options

-> SpecFree (LabelValue "testS3Server" TestS3Server :> context) m () 
-> SpecFree context m () 

Same as introduceK8SMinioS3Server, but allows you to pass in the KubernetesClusterContext.

Bracket-style variants

withK8SMinioS3Server Source #

Arguments

:: (Typeable context, MonadFail m, KubernetesBasic context m, HasFile context "kubectl") 
=> KubernetesClusterContext 
-> MinioOperatorContext 
-> MinioS3ServerOptions

Options

-> (TestS3Server -> m [Result]) 
-> m () 

Bracket-style variant of introduceK8SMinioS3Server.

withK8SMinioS3Server' Source #

Arguments

:: forall m context. (Typeable context, MonadFail m, KubernetesBasic context m) 
=> FilePath

Path to kubectl binary

-> KubernetesClusterContext 
-> MinioOperatorContext 
-> MinioS3ServerOptions

Options

-> (TestS3Server -> m [Result]) 
-> m () 

Same as withK8SMinioS3Server, but allows you to pass in the kubectl binary.

Types

Re-exports

testS3Server :: Label "testS3Server" TestS3Server #

data TestS3Server #

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

Constructors

TestS3Server 

Fields

Instances

Instances details
Show TestS3Server # 
Instance details

Defined in Test.Sandwich.Contexts.Types.S3

Eq TestS3Server # 
Instance details

Defined in Test.Sandwich.Contexts.Types.S3

type HasTestS3Server context = HasLabel context "testS3Server" TestS3Server #