Example #1
0
func TestEC2(t *testing.T) {
	if *amazon {
		registerAmazonTests()
	}
	registerLocalTests()
	gc.TestingT(t)
}
Example #2
0
func TestPackage(t *stdtesting.T) {
	if *amazon {
		registerAmazonTests()
	}
	registerLocalTests()
	gc.TestingT(t)
}
Example #3
0
File: mgo.go Project: juju/testing
// 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)
}
Example #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)
}
Example #5
0
func TestPackage(t *stdtesting.T) {
	if testing.RaceEnabled {
		t.Skip("skipping package under -race, see LP 1497801")
	}
	registerLocalTests()
	gc.TestingT(t)
}
Example #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)
}
Example #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)
}
Example #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)
}
Example #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)
}
Example #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)
}
Example #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)
}
Example #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)
}
Example #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)
}
Example #14
0
func TestAll(t *testing.T) {
	gc.TestingT(t)
}
Example #15
0
func Test(t *stdtesting.T) {
	gc.TestingT(t)
}
Example #16
0
func Test(t *testing.T) {
	if runtime.GOOS == "windows" {
		t.Skip("Skipping upstart tests on windows")
	}
	gc.TestingT(t)
}
Example #17
0
func Test(t *testing.T) { checker.TestingT(t) }
Example #18
0
func Test(t *stdtesting.T) {
	if runtime.GOOS != "linux" {
		t.Skip("LXC is a Linux thing")
	}
	gc.TestingT(t)
}
Example #19
0
func Test(t *stdtesting.T) {
	if runtime.GOOS == "windows" {
		t.Skip("LXC is currently not supported on windows")
	}
	gc.TestingT(t)
}
Example #20
0
func Test(t *testing.T) {
	gc.TestingT(t)
}
Example #21
0
// Hook up gocheck into the gotest runner.
func Test(t *testing.T) { test.TestingT(t) }
Example #22
0
func TestAzureProvider(t *stdtesting.T) {
	gc.TestingT(t)
}
Example #23
0
func TestLocal(t *stdtesting.T) {
	gc.TestingT(t)
}
Example #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) }
Example #26
0
func TestMAAS(t *stdtesting.T) {
	gc.TestingT(t)
}
func TestEncoding(t *testing.T) { checker.TestingT(t) }
Example #28
0
// make `go test` happy
func TestMe(t *testing.T) { check.TestingT(t) }
Example #29
0
func TestPackage(t *stdtesting.T) {
	gc.TestingT(t)
}
Example #30
0
func TestLocal(t *stdtesting.T) {
	if runtime.GOOS == "windows" {
		t.Skip("Local provider is not supported on windows")
	}
	gc.TestingT(t)
}