Documentation
¶
Index ¶
- type ContainerConfiguration
- type ContainerEnvironment
- func (env *ContainerEnvironment) Configure(config ContainerConfiguration)
- func (env *ContainerEnvironment) Host(ctx context.Context, service ServiceID) (string, error)
- func (env *ContainerEnvironment) Port(ctx context.Context, service ServiceID, port string) (string, error)
- func (env *ContainerEnvironment) Start(ctx context.Context) error
- func (env *ContainerEnvironment) Stop(ctx context.Context)
- type Request
- type ServiceID
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContainerConfiguration ¶
type ContainerConfiguration struct {
// contains filtered or unexported fields
}
ContainerConfiguration configures e.g. wait strategies and ports for the container
type ContainerEnvironment ¶
type ContainerEnvironment struct {
// contains filtered or unexported fields
}
ContainerEnvironment handles the container lifecycle for the E2E tests
func (*ContainerEnvironment) Configure ¶
func (env *ContainerEnvironment) Configure(config ContainerConfiguration)
Configure the environment but does not start it yet
func (*ContainerEnvironment) Port ¶
func (env *ContainerEnvironment) Port(ctx context.Context, service ServiceID, port string) (string, error)
Port tries get externally mapped port for a container port
func (*ContainerEnvironment) Start ¶
func (env *ContainerEnvironment) Start(ctx context.Context) error
Start starts all required container for the E2E tests (PostgreSQL, MongoDB, MySql) and waits for them to be up
func (*ContainerEnvironment) Stop ¶
func (env *ContainerEnvironment) Stop(ctx context.Context)
Stop will terminate all running container
type Request ¶
type Request struct {
Name string `yaml:"name"`
Method string `yaml:"method"`
URL string `yaml:"url"`
Body string `yaml:"body"`
StatusCode int `yaml:"statusCode"`
Headers map[string]string `yaml:"header"`
}
Request represents a single E2E test
Click to show internal directories.
Click to hide internal directories.