Documentation ¶
Index ¶
- func AwaitCondition(cond util.Condition, period time.Duration, maxWait time.Duration) error
- func CreateElasticsearchIndex(indexName string) error
- func EnsureTestTopicExists(topicName string, partitions int32) error
- func QueryAllElasticsearchDocuments(indexName string) (*elastic.SearchHits, error)
- func WaitForPort(t *testing.T, port int) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AwaitCondition ¶
AwaitCondition runs the passed 'cond' function every period until it returns true, returning an error if maxWait is exceeded.
func EnsureTestTopicExists ¶ added in v0.1.5
func QueryAllElasticsearchDocuments ¶
QueryAllElasticsearchDocuments is a test utility for fetching all documents in the specified elasticsearch index.
func WaitForPort ¶
WaitForPort waits for the passed port number to start accepting connections. This can be used in integration tests to ensure that infrastructure services are available before tests that depend on them start to run. It's necessary because docker-compose returns when the configured containers are created, which doesn't ensure that the services they run are ready.d
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.