示例#1
0
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)
}
示例#2
0
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
}
示例#3
0
func factoryWrapperV0(st *state.State, resources *common.Resources, auth common.Authorizer) (interface{}, error) {
	return agent.NewAgentAPIV0(st, resources, auth)
}