Documentation
¶
Overview ¶
Package testcontainers provides helpers for spinning up ephemeral infrastructure containers in integration and smoke tests.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Container ¶
type Container struct {
Postgres *postgres.PostgresContainer
Valkey *valkey.ValkeyContainer
RabbitMQ *rabbitmq.RabbitMQContainer
PostgresHost string
PostgresPort int
ValkeyHost string
ValkeyPort int
RabbitMQHost string
RabbitMQPort int
}
Container holds connection info for started infrastructure containers.
func StartInfrastructure ¶
StartInfrastructure starts PostgreSQL, Valkey and RabbitMQ containers and returns a Container struct with connection details. Containers are automatically terminated when the test ends.
Click to show internal directories.
Click to hide internal directories.