The nightly test test_webui/test_user.py::TestLifeCycles::test_life_cycles started to fail in the master branch in PR #515 and in ipa-4-8 branch in PR #516.
test_webui/test_user.py::TestLifeCycles::test_life_cycles
Report and logs on the master branch.
self = <ipatests.test_webui.test_user.TestLifeCycles object at 0x7f9c24051b20> @screenshot def test_life_cycles(self): """ Test user life-cycles """ self.init_app() # create "itest-user" and send him to preserved self.add_record(user.ENTITY, user.DATA) self.delete_record(user.PKEY, confirm_btn=None) self.check_option('preserve', value='true') self.dialog_button_click('ok') self.assert_notification(assert_text='1 item(s) deleted') # try to add the same user again (should fail) self.add_record(user.ENTITY, user.DATA, negative=True) self.assert_last_error_dialog(USR_EXIST.format(user.PKEY)) self.close_all_dialogs() self.wait() # restore "itest-user" user self.switch_to_facet('search_preserved') self.select_record(user.PKEY) self.button_click('undel') self.dialog_button_click('ok') self.assert_no_error_dialog() self.assert_notification(assert_text='1 user(s) restored') self.wait() # add already existing user "itest-user" to stage and try to activate # the latter (should fail) > self.add_record('stageuser', user.DATA) test_webui/test_user.py:761: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ test_webui/ui_driver.py:1492: in add_record self.assert_no_error_dialog() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <ipatests.test_webui.test_user.TestLifeCycles object at 0x7f9c24051b20> def assert_no_error_dialog(self): """ Assert that no error dialog is opened """ dialog = self.get_last_error_dialog() ok = dialog is None if not ok: msg = self.find('p', By.CSS_SELECTOR, dialog).text > assert ok, 'Unexpected error: %s' % msg E AssertionError: Unexpected error: Login 'itest-user' or email address 'itest-user@ipa.test' are already registered. test_webui/ui_driver.py:2062: AssertionError
The last successful run was done on PR#513 started on Nov 3.
The failure coincides with the addition of freeipa-fas package on the test machines. Without the userfas plugin, it is possible to create a stageuser with the same rdn as an active user, but the activation of such a user is refused. With the userfas plugin, it is not possible to create a stageuser with the same rdn as an active user, which changes the behavior.
Issue tracked in freeipa-fas as https://github.com/fedora-infra/freeipa-fas/issues/130
Opened issue in freeipa-pr-ci in order to avoid freeipa-fas package installation in PRCI tests: https://github.com/freeipa/freeipa-pr-ci/issues/400
Similar error observed in [testing_master_testing_selinux] PR 526 : Logs
The freeipa-fas package is not installed any more on the test machines, (we can see a successful run in PR 533 for instance), hence closing as fixed:
Passed test_webui/test_user.py::TestLifeCycles::test_life_cycles
Metadata Update from @frenaud: - Issue close_status updated to: fixed - Issue status updated to: Closed (was: Open)
Metadata Update from @frenaud: - Issue assigned to frenaud
Login to comment on this ticket.