From dda223668acf76f19efc6b85829139beba424cd6 Mon Sep 17 00:00:00 2001 From: Florence Blanc-Renaud Date: Apr 12 2024 13:59:04 +0000 Subject: webui test: Update message for admin disable 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 Reviewed-By: Rob Crittenden --- diff --git a/ipatests/test_webui/test_user.py b/ipatests/test_webui/test_user.py index dc00bca..c0cc7c8 100644 --- a/ipatests/test_webui/test_user.py +++ b/ipatests/test_webui/test_user.py @@ -50,6 +50,8 @@ INV_FIRSTNAME = ("invalid 'first': Leading and trailing spaces are " 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' @@ -548,7 +550,7 @@ class test_user(user_tasks): 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')