testpostgres

package
v1.67.10 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2025 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// PostgresqlDBImage is the PostgreSQL Image.
	PostgresqlDBImage = "postgres:latest"

	// DBUser is the default username for the PostgreSQL test database.
	DBUser = "frame"
	// DBPassword is the default password for the PostgreSQL test database.
	DBPassword = "fr@m3"
	// DBName is the default database name for the PostgreSQL test database.
	DBName = "frame_test"

	// OccurrenceValue is the number of occurrences to wait for in the log pattern.
	OccurrenceValue = 2
	// TimeoutInSeconds is the timeout duration for container startup in seconds.
	TimeoutInSeconds = 60
)

Variables

This section is empty.

Functions

func CreateDatabase added in v1.57.0

func CreateDatabase(
	ctx context.Context,
	connection data.DSN,
	dbName string,
) (data.DSN, func(context.Context), error)

CreateDatabase Creates another database with a suffix dbname on the connection supplied.

func New added in v1.54.0

func NewWithOpts added in v1.54.0

func NewWithOpts(dbName string, containerOpts ...definition.ContainerOption) definition.TestResource

Types

This section is empty.

Jump to

Keyboard shortcuts

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