Documentation ¶
Overview ¶
package dockertestenv provides test environment where service dependencies are docker containers
Index ¶
- Constants
- func NewEphemeralMySQLDB(ctx context.Context, t testing.TB) (*pachsql.DB, string)
- func NewEphemeralPostgresDB(ctx context.Context, t testing.TB) (*pachsql.DB, string)
- func NewMySQLURL(ctx context.Context, t testing.TB) pachsql.URL
- func NewTestBucket(ctx context.Context, t testing.TB) (*blob.Bucket, string)
- func NewTestDB(t testing.TB) *pachsql.DB
- func NewTestDBConfig(t testing.TB) pachconfig.ConfigOption
- func NewTestDBOptions(t testing.TB) []dbutil.Option
- func NewTestDirectDBOptions(t testing.TB) []dbutil.Option
- func NewTestObjClient(ctx context.Context, t testing.TB) obj.Client
- func PGBouncerHost() string
Constants ¶
View Source
const (
MySQLPassword = "root"
)
View Source
const (
PGBouncerPort = 30229
)
Variables ¶
This section is empty.
Functions ¶
func NewEphemeralMySQLDB ¶
func NewEphemeralPostgresDB ¶
NewEphemeralPostgresDB creates a randomly-named new database, returning a connection to the new DB and the name itself.
func NewMySQLURL ¶
NewMySQLURL returns a pachsql.URL to an ephemeral database.
func NewTestDBConfig ¶
func NewTestDBConfig(t testing.TB) pachconfig.ConfigOption
func PGBouncerHost ¶
func PGBouncerHost() string
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.