예제 #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)
}
예제 #25
0
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
파일: local_test.go 프로젝트: imoapps/juju
func TestLocal(t *stdtesting.T) {
	if runtime.GOOS == "windows" {
		t.Skip("Local provider is not supported on windows")
	}
	gc.TestingT(t)
}