func (s *APIWorkersSuite) TestStartNoStartAPIWorkers(c *gc.C) { manifold := machine.APIWorkersManifold(machine.APIWorkersConfig{}) worker, err := manifold.Start(dt.StubGetResource(nil)) c.Check(worker, gc.IsNil) c.Check(err, gc.ErrorMatches, "StartAPIWorkers not specified") c.Check(s.startCalled, jc.IsFalse) }
func (s *APIWorkersSuite) SetUpTest(c *gc.C) { s.startCalled = false s.manifold = machine.APIWorkersManifold(machine.APIWorkersConfig{ APICallerName: "api-caller", StartAPIWorkers: s.startAPIWorkers, }) }