testutils

package
v1.12.1 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2026 License: AGPL-3.0, Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DBName         = "mattermost_test"
	DBUser         = "mmuser"
	DBPass         = "mostest"
	DBNetworkAlias = "db"

	PostgresImage = "postgres:14"
	PostgrePort   = 5432
)

Variables

This section is empty.

Functions

func RunPostgresContainer

func RunPostgresContainer(ctx context.Context, opts ...tc.ContainerCustomizer) (*postgres.PostgresContainer, func(), error)

RunPostgresContainer creates and runs a postgres container

func RunPostgresContainerLocal

func RunPostgresContainerLocal(ctx context.Context) (string, func(), error)

RunPostgresContainerLocal creates and run a postgres container accessible from the local network.

Types

This section is empty.

Jump to

Keyboard shortcuts

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