Fix missing errors in mmctl output (#30567)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
4156112f7c
Коммит
6c8235d031
@@ -48,7 +48,7 @@ func (s *MmctlE2ETestSuite) TestUserActivateCmd() {
|
||||
s.Require().Error(err)
|
||||
s.Require().Len(printer.GetLines(), 0)
|
||||
s.Require().Len(printer.GetErrorLines(), 1)
|
||||
s.Require().Equal(printer.GetErrorLines()[0], "unable to change activation status of user: "+user.Id)
|
||||
s.Require().Equal(printer.GetErrorLines()[0], "unable to change activation status of user "+user.Id+": You do not have the appropriate permissions.")
|
||||
|
||||
ruser, err := s.th.App.GetUser(user.Id)
|
||||
s.Require().Nil(err)
|
||||
@@ -98,7 +98,7 @@ func (s *MmctlE2ETestSuite) TestUserDeactivateCmd() {
|
||||
s.Require().Error(err)
|
||||
s.Require().Len(printer.GetLines(), 0)
|
||||
s.Require().Len(printer.GetErrorLines(), 1)
|
||||
s.Require().Equal(printer.GetErrorLines()[0], "unable to change activation status of user: "+user.Id)
|
||||
s.Require().Equal(printer.GetErrorLines()[0], "unable to change activation status of user "+user.Id+": You do not have the appropriate permissions.")
|
||||
|
||||
ruser, err := s.th.App.GetUser(user.Id)
|
||||
s.Require().Nil(err)
|
||||
|
||||
Ссылка в новой задаче
Block a user