func (s *agentSuiteV0) TestGetEntitiesContainer(c *gc.C) { auth := s.authorizer auth.Tag = s.container.Tag() api, err := agent.NewAgentAPIV0(s.State, s.resources, auth) c.Assert(err, jc.ErrorIsNil) s.testGetEntitiesContainerV0(c, api) }
func (s *agentSuiteV0) newAPI(c *gc.C) *agent.AgentAPIV0 { api, err := agent.NewAgentAPIV0(s.State, s.resources, s.authorizer) c.Assert(err, jc.ErrorIsNil) return api }
func factoryWrapperV0(st *state.State, resources *common.Resources, auth common.Authorizer) (interface{}, error) { return agent.NewAgentAPIV0(st, resources, auth) }