Skip to content

Commit

Permalink
webui test: Update message for admin disable
Browse files Browse the repository at this point in the history
An admin can be disabled if he is not the last member of the
admins group. Update the expecrted error message.

Fixes: https://pagure.io/freeipa/issue/9574
Related: https://pagure.io/freeipa/issue/9489

Signed-off-by: Florence Blanc-Renaud <flo@redhat.com>
Reviewed-By: Rob Crittenden <rcritten@redhat.com>
  • Loading branch information
flo-renaud committed Apr 15, 2024
1 parent b8c5b93 commit d2fa124
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ipatests/test_webui/test_user.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@
FIELD_REQ = 'Required field'
ERR_INCLUDE = 'may only include letters, numbers, _, -, . and $'
ERR_MISMATCH = 'Passwords must match'
ERR_ADMIN_DISABLE = ('admin cannot be deleted or disabled because '
'it is the last member of group admins')
ERR_ADMIN_DEL = ('user admin cannot be deleted/modified: privileged user')
USR_EXIST = 'user with name "{}" already exists'
ENTRY_EXIST = 'This entry already exists'
Expand Down Expand Up @@ -546,7 +548,7 @@ def test_disable_delete_admin(self):
self.select_record('admin')
self.facet_button_click('disable')
self.dialog_button_click('ok')
self.assert_last_error_dialog(ERR_ADMIN_DEL, details=True)
self.assert_last_error_dialog(ERR_ADMIN_DISABLE, details=True)
self.dialog_button_click('ok')
self.assert_record('admin')

Expand Down

0 comments on commit d2fa124

Please sign in to comment.