Beispiel #1
0
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)
}
Beispiel #2
0
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 ""
	})
}
Beispiel #3
0
func init() {
	opts := make(isolate.Profile)
	testsuite.RegisterSuite(processBoxConstructorWithMockedStorage, opts, testsuite.NeverSkip)
}