Documentation
¶
Index ¶
- Variables
- func LoadElasticSnapshot(client *http.Client, url string, location string) (err error)
- func LockTests()
- func Main(m *testing.M, servicefile string, init func(client *http.Client) error, ...)
- func MarkSkippable(t *testing.T) bool
- func StartDockerService(service string, urls ...string) (client *http.Client, err error)
- func StopDockerService(servicefile string) (err error)
- func TestJSONAsset(t *testing.T, name string, res interface{}, filename string) bool
- func UnLockTests()
Constants ¶
This section is empty.
Variables ¶
var TestDataPath string
TestDataPath contains the full path to the 'testdata' directory This variable is guaranteed to be set at runtime; if the directory does not exist panic() is called
Functions ¶
func LoadElasticSnapshot ¶
LoadElasticSnapshot loads an elastic snapshot
func LockTests ¶
func LockTests()
LockTests prevents any other processes from running tests at the same time
func Main ¶
Main is the entry point for an integration test service and urls are passed directly to StartDockerService and StopDockerService
func MarkSkippable ¶
MarkSkippable marks t as containing a skippable integration test returns true if the test has been skipped
func StartDockerService ¶
StartDockerService starts docker-compose configured services from the given servicefile and then blocks until a url returns http status code 200
func StopDockerService ¶
StopDockerService gracefully stops and removes the docker-compose configured services from servicefile including all volumes
func TestJSONAsset ¶
TestJSONAsset compares a result with a json file
Types ¶
This section is empty.