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) }
func Test(t *stdtesting.T) { coretesting.MgoTestPackage(t) }
func TestAll(t *stdtesting.T) { testing.MgoTestPackage(t) }
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) }
func TestMgoSuite(t *stdtesting.T) { testing.MgoTestPackage(t) }