func (s *uniterV2Suite) SetUpTest(c *gc.C) { s.uniterBaseSuite.setUpTest(c) uniterAPIV2, err := uniter.NewUniterAPIV2( s.State, s.resources, s.authorizer, ) c.Assert(err, jc.ErrorIsNil) s.uniter = uniterAPIV2 }
func (s *unitMetricBatchesSuite) SetUpTest(c *gc.C) { s.uniterBaseSuite.setUpTest(c) meteredAuthorizer := apiservertesting.FakeAuthorizer{ Tag: s.meteredUnit.Tag(), } var err error s.uniter, err = uniter.NewUniterAPIV2( s.State, s.resources, meteredAuthorizer, ) c.Assert(err, jc.ErrorIsNil) }