Exemple #1
0
func TestEC2(t *testing.T) {
	if *amazon {
		registerAmazonTests()
	}
	registerLocalTests()
	gc.TestingT(t)
}
Exemple #2
0
func TestPackage(t *stdtesting.T) {
	if *amazon {
		registerAmazonTests()
	}
	registerLocalTests()
	gc.TestingT(t)
}
Exemple #3
0
// MgoTestPackage should be called to register the tests for any package
// that requires a MongoDB server. If certs is non-nil, a secure SSL connection
// will be used from client to server.
func MgoTestPackage(t *testing.T, certs *Certs) {
	if err := MgoServer.Start(certs); err != nil {
		t.Fatal(err)
	}
	defer MgoServer.Destroy()
	gc.TestingT(t)
}
Exemple #4
0
func TestPackage(t *testing.T) {
	//TODO(bogdanteleaga): Fix this on windows
	if runtime.GOOS == "windows" {
		t.Skip("bug 1403084: Skipping rsyslog tests on windows")
	}
	gc.TestingT(t)
}
Exemple #5
0
func TestPackage(t *stdtesting.T) {
	if testing.RaceEnabled {
		t.Skip("skipping package under -race, see LP 1497801")
	}
	registerLocalTests()
	gc.TestingT(t)
}
Exemple #6
0
func Test(t *stdtesting.T) {
	//TODO(bogdanteleaga): Fix these on windows
	if runtime.GOOS == "windows" {
		t.Skip("bug 1403084: Skipping for now on windows")
	}
	gc.TestingT(t)
}
Exemple #7
0
func Test(t *testing.T) {
	//TODO(bogdanteleaga): Fix this once manual provider is supported on
	//windows
	if runtime.GOOS == "windows" {
		t.Skip("Manual provider is not yet supported on windows")
	}
	gc.TestingT(t)
}
Exemple #8
0
func Test(t *testing.T) {
	err := components.RegisterForServer()
	if err != nil {
		t.Fatalf("could not register server components: %v", err)
	}

	gc.TestingT(t)
}
Exemple #9
0
func TestPackage(t *stdtesting.T) {
	if testing.RaceEnabled {
		t.Skip("skipping package under -race, see LP 1519141")
	}
	if *amazon {
		registerAmazonTests()
	}
	registerLocalTests()
	gc.TestingT(t)
}
Exemple #10
0
func Test(t *testing.T) {
	if *live {
		cred, err := identity.CompleteCredentialsFromEnv()
		if err != nil {
			t.Fatalf("Error setting up test suite: %s", err.Error())
		}
		registerLiveTests(cred)
	}
	registerLocalTests()
	gc.TestingT(t)
}
Exemple #11
0
func Test(t *testing.T) {
	//TODO(bogdanteleaga): Fix this once manual provider is supported on
	//windows
	if runtime.GOOS == "windows" {
		t.Skip("Manual provider is not yet supported on windows")
	}
	// Prevent any use of ssh for storage.
	*manual.NewSSHStorage = func(sshHost, storageDir, storageTmpdir string) (storage.Storage, error) {
		return nil, nil
	}
	gc.TestingT(t)
}
Exemple #12
0
func Test(t *stdtesting.T) {
	if runtime.GOOS == "windows" {
		t.Skip("LXC is not supported on windows")
	}

	/* if there's not a lxd available, don't run the tests */
	/*
		_, err := lxd.ConnectLocal("")
		if err != nil {
			t.Skip("LXD is not avalilable %s", err)
		}
	*/
	gc.TestingT(t)
}
Exemple #13
0
func Test(t *stdtesting.T) {
	if *live {
		if *vendor == "" {
			t.Fatal("missing vendor")
		}
		var ok bool
		var testData liveTestData
		if testData, ok = liveURLs[*vendor]; !ok {
			keys := reflect.ValueOf(liveURLs).MapKeys()
			t.Fatalf("Unknown vendor %s. Must be one of %s", *vendor, keys)
		}
		registerLiveSimpleStreamsTests(testData.baseURL, imagemetadata.NewImageConstraint(simplestreams.LookupParams{
			CloudSpec: testData.validCloudSpec,
			Series:    []string{"quantal"},
			Arches:    []string{"amd64"},
		}), testData.requireSigned)
	}
	registerSimpleStreamsTests()
	gc.TestingT(t)
}
Exemple #14
0
func TestAll(t *testing.T) {
	gc.TestingT(t)
}
Exemple #15
0
func Test(t *stdtesting.T) {
	gc.TestingT(t)
}
Exemple #16
0
func Test(t *testing.T) {
	if runtime.GOOS == "windows" {
		t.Skip("Skipping upstart tests on windows")
	}
	gc.TestingT(t)
}
Exemple #17
0
func Test(t *testing.T) { checker.TestingT(t) }
Exemple #18
0
func Test(t *stdtesting.T) {
	if runtime.GOOS != "linux" {
		t.Skip("LXC is a Linux thing")
	}
	gc.TestingT(t)
}
Exemple #19
0
func Test(t *stdtesting.T) {
	if runtime.GOOS == "windows" {
		t.Skip("LXC is currently not supported on windows")
	}
	gc.TestingT(t)
}
Exemple #20
0
func Test(t *testing.T) {
	gc.TestingT(t)
}
Exemple #21
0
// Hook up gocheck into the gotest runner.
func Test(t *testing.T) { test.TestingT(t) }
Exemple #22
0
func TestAzureProvider(t *stdtesting.T) {
	gc.TestingT(t)
}
Exemple #23
0
func TestLocal(t *stdtesting.T) {
	gc.TestingT(t)
}
Exemple #24
0
func Test(t *testing.T) {
	registerSimpleStreamsTests()
	gc.Suite(&signingSuite{})
	gc.Suite(&jsonSuite{})
	gc.TestingT(t)
}
func Test(t *testing.T) { chk.TestingT(t) }
Exemple #26
0
func TestMAAS(t *stdtesting.T) {
	gc.TestingT(t)
}
func TestEncoding(t *testing.T) { checker.TestingT(t) }
Exemple #28
0
// make `go test` happy
func TestMe(t *testing.T) { check.TestingT(t) }
Exemple #29
0
func TestPackage(t *stdtesting.T) {
	gc.TestingT(t)
}
Exemple #30
0
func TestLocal(t *stdtesting.T) {
	if runtime.GOOS == "windows" {
		t.Skip("Local provider is not supported on windows")
	}
	gc.TestingT(t)
}