Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckConnection ¶
CheckConnection connects to the endpoint until success 100 times with delay or fails
func GetFreePortForListener ¶
GetFreePortForListener open new connection on free port
func GetSourceRootDirectory ¶
GetSourceRootDirectory expects that tests started from root of source code and accessible tests/ssl folder, otherwise try to walk through parents folders and check that it's root of source until find or call t.Fatal It useful because `go test ./...` change working directory recursively to each packages when it compile tests
func TestWithTLS ¶
func TestWithTLS() bool
TestWithTLS returns true if integration tests should run with TLS configuration
Types ¶
type DatabaseConfig ¶
DatabaseConfig stores configuration for test database
func GetDatabaseConfig ¶
func GetDatabaseConfig(t *testing.T) DatabaseConfig
GetDatabaseConfig returns DatabaseConfig for integration tests configured with env variables or default values used for tests/test.py