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