Documentation ¶
Index ¶
- func GetLocalAuthority() (string, error)
- func JsonBytesEqual(t *testing.T, expected, actual []byte, msgAndArgs ...interface{})
- func ObjectsEqual(t *testing.T, expected, actual interface{}, msgAndArgs ...interface{})
- func RenewGet(url string) (*http.Response, error)
- type ClickHouseContainer
- type IntegrationTest
- type PostgresContainer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetLocalAuthority ¶ added in v1.15.6
func JsonBytesEqual ¶
func ObjectsEqual ¶
Types ¶
type ClickHouseContainer ¶ added in v1.15.6
type ClickHouseContainer struct { Container testcontainers.Container Context context.Context Port int Dsns []string Database string }
func NewClickhouseContainer ¶ added in v1.15.6
func NewClickhouseContainer(ctx context.Context) (*ClickHouseContainer, error)
Creates new Clickhouse test container if CH_TEST_PORT is not defined. Otherwise uses db at defined port. This logic is required for running test at CI environment
func (*ClickHouseContainer) Close ¶ added in v1.15.6
func (ch *ClickHouseContainer) Close()
type IntegrationTest ¶ added in v1.15.6
type PostgresContainer ¶ added in v1.15.6
type PostgresContainer struct { Container testcontainers.Container Context context.Context Host string Port int Database string Schema string Username string Password string }
func NewPostgresContainer ¶ added in v1.15.6
func NewPostgresContainer(ctx context.Context) (*PostgresContainer, error)
Creates new Postgres test container if PG_TEST_PORT is not defined. Otherwise uses db at defined port. This logic is required for running test at CI environment
func (*PostgresContainer) Close ¶ added in v1.15.6
func (pgc *PostgresContainer) Close()
Click to show internal directories.
Click to hide internal directories.