You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
expected=multierror.Append(expected, errors.New("unable to delete channel '\""+channel.Name+"\"' error: Permanent channel deletion feature is not enabled. ServiceSettings.EnableAPIChannelDeletion must be set to true to use this command. See https://mattermost.com/pl/environment-configuration-settings for more information"))
s.Run("Permission denied error for system admin when deleting a valid team", func() {
@@ -140,7 +185,7 @@ func (s *MmctlE2ETestSuite) TestDeleteTeamsCmdF() {
140
185
s.Require().Error(err)
141
186
s.Len(printer.GetLines(), 0)
142
187
s.Len(printer.GetErrorLines(), 1)
143
-
s.Equal("Unable to delete team '"+s.th.BasicTeam.Name+"' error: Permanent team deletion feature is not enabled. Please contact your System Administrator.", printer.GetErrorLines()[0])
188
+
s.Equal("Unable to delete team '"+s.th.BasicTeam.Name+"' error: Permanent team deletion feature is not enabled. ServiceSettings.EnableAPITeamDeletion must be set to true to use this command. See https://mattermost.com/pl/environment-configuration-settings for more information.", printer.GetErrorLines()[0])
Copy file name to clipboardExpand all lines: server/cmd/mmctl/commands/user_e2e_test.go
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -764,7 +764,7 @@ func (s *MmctlE2ETestSuite) TestDeleteUsersCmd() {
764
764
765
765
varexpectedErr*multierror.Error
766
766
expectedErr=multierror.Append(expectedErr, fmt.Errorf("unable to delete user %s error: %w", newUser.Username,
767
-
fmt.Errorf("Permanent user deletion feature is not enabled. Please contact your System Administrator.")))
767
+
fmt.Errorf("Permanent user deletion feature is not enabled. ServiceSettings.EnableAPIUserDeletion must be set to true to use this command. See https://mattermost.com/pl/environment-configuration-settings for more information.")))
"translation": "Permanent channel deletion feature is not enabled. ServiceSettings.EnableAPIChannelDeletion must be set to true to use this command. See https://mattermost.com/pl/environment-configuration-settings for more information"
"translation": "Permanent team deletion feature is not enabled. ServiceSettings.EnableAPITeamDeletion must be set to true to use this command. See https://mattermost.com/pl/environment-configuration-settings for more information."
"translation": "Permanent user deletion feature is not enabled. ServiceSettings.EnableAPIUserDeletion must be set to true to use this command. See https://mattermost.com/pl/environment-configuration-settings for more information."
0 commit comments