testhelpers

package
v0.19.2 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PostgresImage = "postgres:18-alpine"
	MySQLImage    = "mysql:lts"
	RedisImage    = "redis:8-alpine"
	MinIOImage    = "minio/minio:latest"
)

Container images.

View Source
const (
	TestDatabaseName = "testdb"
	TestUsername     = "testuser"
	TestPassword     = "testpass"
)

Database credentials.

View Source
const (
	TestMinIOAccessKey = "testadmin"
	TestMinIOSecretKey = "testadmin"
	TestMinioBucket    = "testbucket"
)

MinIO credentials.

View Source
const (
	DefaultContainerTimeout = 30 * time.Second
)

Timeouts.

Variables

This section is empty.

Functions

This section is empty.

Types

type MinIOContainer

type MinIOContainer struct {
	MinIOConfig *config.MinIOConfig
	// contains filtered or unexported fields
}

func NewMinIOContainer

func NewMinIOContainer(ctx context.Context, s *suite.Suite) *MinIOContainer

func (*MinIOContainer) Terminate

func (c *MinIOContainer) Terminate(ctx context.Context, s *suite.Suite)

type MySQLContainer

type MySQLContainer struct {
	DsConfig *config.DatasourceConfig
	// contains filtered or unexported fields
}

func NewMySQLContainer

func NewMySQLContainer(ctx context.Context, s *suite.Suite) *MySQLContainer

func (*MySQLContainer) Terminate

func (c *MySQLContainer) Terminate(ctx context.Context, s *suite.Suite)

type PostgresContainer

type PostgresContainer struct {
	DsConfig *config.DatasourceConfig
	// contains filtered or unexported fields
}

func NewPostgresContainer

func NewPostgresContainer(ctx context.Context, s *suite.Suite) *PostgresContainer

func (*PostgresContainer) Terminate

func (c *PostgresContainer) Terminate(ctx context.Context, s *suite.Suite)

type RedisContainer

type RedisContainer struct {
	RdsConfig *config.RedisConfig
	// contains filtered or unexported fields
}

func NewRedisContainer

func NewRedisContainer(ctx context.Context, s *suite.Suite) *RedisContainer

func (*RedisContainer) Terminate

func (c *RedisContainer) Terminate(ctx context.Context, s *suite.Suite)

Jump to

Keyboard shortcuts

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