awstestcontainers

package module
v0.1.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 18, 2024 License: GPL-3.0 Imports: 13 Imported by: 0

README

Go Test Containers for AWS

A set of helper items for writing integration tests for AWS services.

Currently covered:

  • AWS Lambda
  • Wiremock

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Container

type Container interface {
	StartUsing(ctx context.Context, net *testcontainers.DockerNetwork) error
	Stop()
	LocalhostPort() int
}

type Containers

type Containers struct {
	// contains filtered or unexported fields
}

func (*Containers) AddContainer

func (c *Containers) AddContainer(container Container) *Container

func (*Containers) Start

func (c *Containers) Start()

func (*Containers) StartWithDelay added in v0.1.2

func (c *Containers) StartWithDelay(duration time.Duration)

func (*Containers) Stop

func (c *Containers) Stop()

type LambdaContainer

type LambdaContainer struct {
	// contains filtered or unexported fields
}

func (*LambdaContainer) Binary

func (c *LambdaContainer) Binary(b string)

func (*LambdaContainer) Environment

func (c *LambdaContainer) Environment(e map[string]string)

func (*LambdaContainer) InvocationUrl added in v0.1.5

func (c *LambdaContainer) InvocationUrl() string

func (*LambdaContainer) LocalhostPort

func (c *LambdaContainer) LocalhostPort() int

func (*LambdaContainer) Log

func (c *LambdaContainer) Log() io.ReadCloser

func (*LambdaContainer) StartUsing

func (c *LambdaContainer) StartUsing(ctx context.Context, net *testcontainers.DockerNetwork) error

func (*LambdaContainer) Stop

func (c *LambdaContainer) Stop()

type WiremockContainer added in v0.1.8

type WiremockContainer struct {
	Hostname   string
	ConfigPath string
	// contains filtered or unexported fields
}

func (*WiremockContainer) LocalhostPort added in v0.1.8

func (c *WiremockContainer) LocalhostPort() int

func (*WiremockContainer) StartUsing added in v0.1.8

func (c *WiremockContainer) StartUsing(ctx context.Context, net *testcontainers.DockerNetwork) error

func (*WiremockContainer) Stop added in v0.1.8

func (c *WiremockContainer) Stop()

Directories

Path Synopsis
lambda

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL