From e49ec1048db85f514e2db5960f773e5d56fa0cec Mon Sep 17 00:00:00 2001 From: Florence Blanc-Renaud Date: Wed, 2 Aug 2023 15:41:57 +0200 Subject: [PATCH] ipatests: update expected webui msg for admin deletion The deletion of the admin is now forbidden (even if it is not the last member of the admins group) and the error message has changed from "admin cannot be deleted or disabled because it is the last member of group admins" to " user admin cannot be deleted/modified: privileged user". Update the expected message in the webui test. Related: https://pagure.io/freeipa/issue/8878 Signed-off-by: Florence Blanc-Renaud Reviewed-By: Alexander Bokovoy --- ipatests/test_webui/test_user.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ipatests/test_webui/test_user.py b/ipatests/test_webui/test_user.py index 02a1ef3fc..dc00bcaa3 100644 --- a/ipatests/test_webui/test_user.py +++ b/ipatests/test_webui/test_user.py @@ -50,8 +50,7 @@ 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_DEL = ('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' ACTIVE_ERR = 'active user with name "{}" already exists'