From 2c98105cf2cdfe6cf9cf62aa9ebc7cd0b297c4ff Mon Sep 17 00:00:00 2001 From: Alexander Bokovoy Date: Sat, 19 Dec 2020 10:44:31 +0200 Subject: [PATCH] tests_webui: flip leading and trailing space password test With commit 809d9cb80f5f4471f125823888f37875aa37809e we now allow leading and trailing space in passwords. Fix Web UI tests to follow this change. Fixes: https://pagure.io/freeipa/issue/8629 Signed-off-by: Alexander Bokovoy Reviewed-By: Florence Blanc-Renaud --- ipatests/test_webui/test_user.py | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/ipatests/test_webui/test_user.py b/ipatests/test_webui/test_user.py index 179fda27c..d8ab01b29 100644 --- a/ipatests/test_webui/test_user.py +++ b/ipatests/test_webui/test_user.py @@ -55,8 +55,6 @@ ENTRY_EXIST = 'This entry already exists' ACTIVE_ERR = 'active user with name "{}" already exists' DISABLED = 'This entry is already disabled' LONG_LOGIN = "invalid 'login': can be at most 32 characters" -INV_PASSWD = ("invalid 'password': Leading and trailing spaces are " - "not allowed") @pytest.mark.tier1 @@ -508,21 +506,17 @@ class test_user(user_tasks): # click add and cancel self.add_record(user.ENTITY, user.DATA, dialog_btn='cancel') - # add leading space before password (should FAIL) + # add leading space before password (should SUCCEED) self.navigate_to_entity(user.ENTITY) self.facet_button_click('add') self.fill_fields(user.DATA_PASSWD_LEAD_SPACE['add']) self.dialog_button_click('add') - self.assert_last_error_dialog(INV_PASSWD) - self.close_all_dialogs() - # add trailing space before password (should FAIL) + # add trailing space before password (should SUCCEED) self.navigate_to_entity(user.ENTITY) self.facet_button_click('add') self.fill_fields(user.DATA_PASSWD_TRAIL_SPACE['add']) self.dialog_button_click('add') - self.assert_last_error_dialog(INV_PASSWD) - self.close_all_dialogs() # add user using enter self.add_record(user.ENTITY, user.DATA2, negative=True)