mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
tests_webui: flip leading and trailing space password test
With commit 809d9cb80f
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 <abokovoy@redhat.com>
Reviewed-By: Florence Blanc-Renaud <frenaud@redhat.com>
This commit is contained in:
parent
9ce2fe4474
commit
2c98105cf2
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user