Documentation
¶
Index ¶
Constants ¶
View Source
const ( // PostgresqlDBImage is the PostgreSQL Image. PostgresqlDBImage = "postgres:latest" // DBUser is the default username for the PostgreSQL test database. DBUser = "frame" // DBPassword is the default password for the PostgreSQL test database. DBPassword = "fr@m3" // DBName is the default database name for the PostgreSQL test database. DBName = "frame_test" // OccurrenceValue is the number of occurrences to wait for in the log pattern. OccurrenceValue = 2 // TimeoutInSeconds is the timeout duration for container startup in seconds. TimeoutInSeconds = 60 )
Variables ¶
This section is empty.
Functions ¶
func CreateDatabase ¶ added in v1.57.0
func CreateDatabase( ctx context.Context, connection data.DSN, dbName string, ) (data.DSN, func(context.Context), error)
CreateDatabase Creates another database with a suffix dbname on the connection supplied.
func New ¶ added in v1.54.0
func New() definition.TestResource
func NewWithOpts ¶ added in v1.54.0
func NewWithOpts(dbName string, containerOpts ...definition.ContainerOption) definition.TestResource
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.