Example #1
0
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)
}
Example #2
0
func Test(t *stdtesting.T) {
	coretesting.MgoTestPackage(t)
}
Example #3
0
func TestAll(t *stdtesting.T) {
	testing.MgoTestPackage(t)
}
Example #4
0
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)
}
Example #5
0
func TestMgoSuite(t *stdtesting.T) {
	testing.MgoTestPackage(t)
}