Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewTestcontainersLogger ¶
Types ¶
type ClickhouseClientFunc ¶
type ClickhouseClientFunc func(t *testing.T) (clickhouse.Conn, error)
func NewTestClickhouse ¶
func NewTestClickhouse(ctx context.Context) (*clickhousecontainer.ClickHouseContainer, ClickhouseClientFunc, error)
NewTestClickhouse creates a new ClickHouse container with the schema initialized from migration files. Returns a container reference and a function to create test connections. The per-test connection is automatically closed via t.Cleanup.
Mirrors testenv.NewTestClickhouse but lives in testinfra so it can be used by packages (e.g. internal/authz) that cannot import internal/testenv because of circular dependencies.
type PostgresDBCloneFunc ¶
func NewTestPostgres ¶
func NewTestPostgres(ctx context.Context) (*postgres.PostgresContainer, PostgresDBCloneFunc, error)
Click to show internal directories.
Click to hide internal directories.