func init() { var endpoint string if endpoint = os.Getenv("DOCKER_HOST"); endpoint == "" { endpoint = client.DefaultDockerHost } opts := isolate.Profile{ "endpoint": endpoint, "cwd": "/usr/bin", } testsuite.RegisterSuite(dockerBoxConstructor, opts, testsuite.NeverSkip) }
func init() { opts := isolate.Profile{ "Registry": "http://localhost:5000", "cwd": "/usr/bin", } testsuite.RegisterSuite(portoBoxConstructor, opts, func() string { if os.Getenv("TRAVIS") == "true" { return "Skip Porto tests under Travis CI" } if runtime.GOOS != "linux" { return "Porto tests could be run in Linux only" } return "" }) }
func init() { opts := make(isolate.Profile) testsuite.RegisterSuite(processBoxConstructorWithMockedStorage, opts, testsuite.NeverSkip) }