func (s *modelManagerStateSuite) TestNonAdminModelManager(c *gc.C) { user := names.NewUserTag("external@remote") s.setAPIUser(c, user) c.Assert(modelmanager.AuthCheck(c, s.modelmanager, user), jc.IsFalse) }
func (s *modelManagerStateSuite) TestAdminModelManager(c *gc.C) { user := s.AdminUserTag(c) s.setAPIUser(c, user) c.Assert(modelmanager.AuthCheck(c, s.modelmanager, user), jc.IsTrue) }