示例#1
0
文件: main_test.go 项目: jkary/core
func TestPackage(t *stdtesting.T) {
	// Change the default init dir in worker/deployer,
	// so the deployer doesn't try to remove upstart
	// jobs from tests.
	restore := testing.PatchValue(&deployer.InitDir, mkdtemp("juju-worker-deployer"))
	defer restore()

	// TODO(waigani) 2014-03-19 bug 1294458
	// Refactor to use base suites

	// Change the path to "juju-run", so that the
	// tests don't try to write to /usr/local/bin.
	jujuRun = mktemp("juju-run", "")
	defer os.Remove(jujuRun)

	// Create a CA certificate available for all tests.
	caCertFile = mktemp("juju-test-cert", coretesting.CACert)
	defer os.Remove(caCertFile)

	coretesting.MgoTestPackage(t)
}
示例#2
0
文件: agent_test.go 项目: jkary/core
func TestPackage(t *stdtesting.T) {
	coretesting.MgoTestPackage(t)
}
示例#3
0
文件: suite_test.go 项目: jkary/core
func Test(t *stdtesting.T) {
	testing.MgoTestPackage(t)
}
示例#4
0
文件: charm_test.go 项目: jkary/core
func TestPackage(t *stdtesting.T) {
	// TODO(fwereade) 2014-03-21 not-worth-a-bug-number
	// rewrite BundlesDir tests to use the mocks below and not require an API
	// server and associated gubbins.
	coretesting.MgoTestPackage(t)
}
示例#5
0
文件: mgo_test.go 项目: jkary/core
func TestMgoSuite(t *stdtesting.T) {
	testing.MgoTestPackage(t)
}