dockertestenv

package
v2.6.0-nightly.20230503 Latest Latest
Warning

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

Go to latest
Published: May 2, 2023 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Overview

package dockertestenv provides test environment where service dependencies are docker containers

Index

Constants

View Source
const (
	MySQLPassword = "root"
)
View Source
const (
	PGBouncerPort = 30229
)

Variables

This section is empty.

Functions

func NewEphemeralMySQLDB

func NewEphemeralMySQLDB(ctx context.Context, t testing.TB) (*pachsql.DB, string)

func NewEphemeralPostgresDB

func NewEphemeralPostgresDB(ctx context.Context, t testing.TB) (*pachsql.DB, string)

NewEphemeralPostgresDB creates a randomly-named new database, returning a connection to the new DB and the name itself.

func NewMySQLURL

func NewMySQLURL(ctx context.Context, t testing.TB) pachsql.URL

NewMySQLURL returns a pachsql.URL to an ephemeral database.

func NewTestDB

func NewTestDB(t testing.TB) *pachsql.DB

func NewTestDBConfig

func NewTestDBConfig(t testing.TB) serviceenv.ConfigOption

func NewTestDBOptions

func NewTestDBOptions(t testing.TB) []dbutil.Option

func NewTestDirectDBOptions

func NewTestDirectDBOptions(t testing.TB) []dbutil.Option

func NewTestObjClient

func NewTestObjClient(ctx context.Context, t testing.TB) obj.Client

func PGBouncerHost

func PGBouncerHost() string

Types

This section is empty.

Jump to

Keyboard shortcuts

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