stdtestcontainer

package
v0.0.139 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package stdtestcontainer provides re-usable code for using testcontainer-go.

Index

Constants

This section is empty.

Variables

View Source
var (
	// CreateGenericContainer sets the function used for creating the generic container, can be replaced for testing.
	CreateGenericContainer = testcontainers.GenericContainer
	// CleanupContainer sets the function used for cleaning up the container, can be replaced for testing.
	CleanupContainer = testcontainers.CleanupContainer
)

Functions

func SetupLambdaRIEContainer

func SetupLambdaRIEContainer(
	t *testing.T,
	ctx context.Context,
	imageName string,
	entrypoint []string,
	platform string,
	env map[string]string,
	hostRieFilePath string,
	hostAWSCredentialsFilePath string,
) *requests.Builder

SetupLambdaRIEContainer will use testcontainers-go to setup a container for e2e testing of a lambda handler.

Types

This section is empty.

Jump to

Keyboard shortcuts

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