示例#1
0
func TestJoyent(t *testing.T) {
	if *live {
		registerLiveTests()
	}
	registerLocalTests()
	gc.TestingT(t)
}
示例#2
0
func Test(t *testing.T) {
	gocheck.TestingT(t)
	if suitesRun != suitesRunExpected && flag.Lookup("gocheck.f").Value.String() == "" {
		critical(fmt.Sprintf("Expected %d suites to run rather than %d",
			suitesRunExpected, suitesRun))
	}
}
示例#3
0
文件: suite_test.go 项目: kapilt/juju
func Test(t *testing.T) {
	// Prevent any use of ssh for storage.
	*manual.NewSSHStorage = func(sshHost, storageDir, storageTmpdir string) (storage.Storage, error) {
		return nil, nil
	}
	gc.TestingT(t)
}
示例#4
0
文件: mgo.go 项目: natefinch/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)
}
示例#5
0
文件: suite_test.go 项目: jiasir/juju
func TestEC2(t *testing.T) {
	if *amazon {
		registerAmazonTests()
	}
	registerLocalTests()
	gc.TestingT(t)
}
示例#6
0
文件: mgo.go 项目: jkary/core
func MgoTestPackageSsl(t *stdtesting.T, ssl bool) {
	if err := MgoServer.Start(ssl); err != nil {
		t.Fatal(err)
	}
	defer MgoServer.Destroy()
	gc.TestingT(t)
}
示例#7
0
func Test(t *testing.T) {
	creds, err := jpc.CompleteCredentialsFromEnv(*keyName)
	if err != nil {
		t.Fatalf("Error setting up test suite: %v", err)
	}

	gc.Suite(&ClientSuite{creds: creds})
	gc.TestingT(t)
}
示例#8
0
func Test(t *testing.T) {
	if *live {
		creds, err := jpc.CompleteCredentialsFromEnv(*keyName)
		if err != nil {
			t.Fatalf("Error setting up test suite: %s", err.Error())
		}
		registerJoyentCloudTests(creds)
	}
	registerLocalTests(*keyName)
	gc.TestingT(t)
}
示例#9
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)
}
示例#10
0
func Test(t *testing.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)
}
示例#11
0
func Test(t *testing.T) {
	// check environment variables
	if os.Getenv("LIVE") != "" {
		var err error
		*live, err = strconv.ParseBool(os.Getenv("LIVE"))
		if err != nil {
			t.Fatal(err)
		}
	}

	if os.Getenv("KEY_NAME") != "" {
		*keyName = os.Getenv("KEY_NAME")
	}

	if *live {
		creds, err := jpc.CompleteCredentialsFromEnv(*keyName)
		if err != nil {
			t.Fatalf("Error setting up test suite: %s", err.Error())
		}
		registerJoyentCloudTests(creds)
	}
	registerLocalTests(*keyName)
	gc.TestingT(t)
}
示例#12
0
func TestAzureProvider(t *stdtesting.T) {
	gc.TestingT(t)
}
示例#13
0
//Hookup gocheck with go test
func Test(t *testing.T) {
	chk.TestingT(t)
}
示例#14
0
func TestSetting(t *testing.T) {
	C.TestingT(t)
}
示例#15
0
func Test(t *testing.T) {
	gocheck.TestingT(t)
}
示例#16
0
func Test(t *stdtesting.T) {
	gc.TestingT(t)
}
示例#17
0
func Test(t *testing.T) {
	C.TestingT(t)
}
示例#18
0
func TestAll(t *testing.T) {
	gc.TestingT(t)
}
示例#19
0
// Hook up gocheck into the gotest runner.
func Test(t *testing.T) { test.TestingT(t) }
示例#20
0
func TestMAAS(t *stdtesting.T) {
	gc.TestingT(t)
}
示例#21
0
func Test(t *testing.T) {
	registerSimpleStreamsTests()
	gc.Suite(&signingSuite{})
	gc.Suite(&jsonSuite{})
	gc.TestingT(t)
}
示例#22
0
// Package-level test setup.
func TestPackage(t *testing.T) { gocheck.TestingT(t) }
示例#23
0
文件: suite_test.go 项目: jiasir/juju
func Test(t *testing.T) {
	setupToolsTests()
	setupSimpleStreamsTests(t)
	gc.TestingT(t)
}
示例#24
0
func TestJoyent(t *testing.T) {
	registerLocalTests()
	gc.TestingT(t)
}
示例#25
0
func TestWithGocheck(t *testing.T) { gocheck.TestingT(t) }
示例#26
0
func TestUtils(t *testing.T) {
	C.TestingT(t)
}
示例#27
0
文件: config_test.go 项目: jkary/core
func TestPackage(t *stdtesting.T) {
	gc.TestingT(t)
}
示例#28
0
func TestLocal(t *stdtesting.T) {
	gc.TestingT(t)
}
示例#29
0
func Test(t *testing.T) {
	gc.TestingT(t)
}
示例#30
0
// Our test suite
func TestGoCheckInit(t *testing.T) { gocheck.TestingT(t) }