The nightly test fedora-rawhide/test_webui_users failed in test_webui/test_user.py::TestSSHkeys::test_ssh_keys. See logs in PR #125:
fedora-rawhide/test_webui_users
test_webui/test_user.py::TestSSHkeys::test_ssh_keys
self = <ipatests.test_webui.test_user.TestSSHkeys object at 0x7f3742746340> @screenshot def test_ssh_keys(self): self.init_app() # add and undo SSH key self.add_sshkey_to_record(user.SSH_RSA, 'admin', save=False, navigate=True) self.assert_num_ssh_keys(1) self.undo_ssh_keys() self.assert_num_ssh_keys(0) # add and undo 2 SSH keys (using undo all) ssh_keys = [user.SSH_RSA, user.SSH_DSA] self.add_sshkey_to_record(ssh_keys, 'admin', save=False) self.assert_num_ssh_keys(2) self.undo_ssh_keys(btn_name='undo_all') self.assert_num_ssh_keys(0) # add SSH key and refresh self.add_sshkey_to_record(user.SSH_RSA, 'admin', save=False) self.assert_num_ssh_keys(1) self.facet_button_click('refresh') self.assert_num_ssh_keys(0) # add SSH key and revert self.add_sshkey_to_record(user.SSH_RSA, 'admin', save=False) self.assert_num_ssh_keys(1) self.facet_button_click('revert') self.assert_num_ssh_keys(0) # add SSH key, move elsewhere and cancel. self.add_sshkey_to_record(user.SSH_RSA, 'admin', save=False) self.assert_num_ssh_keys(1) self.switch_to_facet('memberof_group') self.dialog_button_click('cancel') self.assert_num_ssh_keys(1) self.undo_ssh_keys() # add SSH key, move elsewhere and click reset button. self.add_sshkey_to_record(user.SSH_RSA, 'admin', save=False) self.assert_num_ssh_keys(1) self.switch_to_facet('memberof_group') self.wait_for_request() self.dialog_button_click('revert') self.wait() self.switch_to_facet('details') self.assert_num_ssh_keys(0) # add SSH key, move elsewhere and click save button. self.add_sshkey_to_record(user.SSH_RSA, 'admin', save=False) self.assert_num_ssh_keys(1) self.switch_to_facet('memberof_group') self.wait() self.dialog_button_click('save') self.wait_for_request(n=4) self.switch_to_facet('details') self.assert_num_ssh_keys(1) self.delete_record_sshkeys('admin') # add, save and delete RSA and DSA keys keys = [user.SSH_RSA, user.SSH_DSA] self.add_sshkey_to_record(keys, 'admin') self.assert_num_ssh_keys(2) self.delete_record_sshkeys('admin') self.assert_num_ssh_keys(0) # add RSA SSH keys with trailing space and "=" sign at the end keys = [user.SSH_RSA+" ", user.SSH_RSA2+"="] self.add_sshkey_to_record(keys, 'admin') self.assert_num_ssh_keys(2) self.delete_record_sshkeys('admin') self.assert_num_ssh_keys(0) # lets try to add empty SSH key (should fail) self.add_sshkey_to_record('', 'admin') self.assert_last_error_dialog(EMPTY_MOD) self.dialog_button_click('cancel') self.undo_ssh_keys() # try to add invalid SSH key self.add_sshkey_to_record('invalid_key', 'admin') self.assert_last_error_dialog(INVALID_SSH_KEY) self.dialog_button_click('cancel') self.undo_ssh_keys() # add duplicate SSH keys self.add_sshkey_to_record(user.SSH_RSA, 'admin') self.add_sshkey_to_record(user.SSH_RSA, 'admin', save=False) self.facet_button_click('save') self.assert_last_error_dialog(EMPTY_MOD) self.dialog_button_click('cancel') # test SSH key edit when user lacks write rights for related attribute # see ticket 3800 (we use DATA_SPECIAL_CHARS just for convenience) self.add_record(user.ENTITY, [user.DATA2, user.DATA_SPECIAL_CHARS]) self.add_sshkey_to_record(user.SSH_RSA, user.PKEY2, navigate=True) self.logout() self.init_app(user.PKEY_SPECIAL_CHARS, user.PASSWD_SCECIAL_CHARS) self.navigate_to_record(user.PKEY2, entity=user.ENTITY) show_ssh_key_btn = self.find('div.widget .btn[name="ipasshpubkey-0"]', By.CSS_SELECTOR) show_ssh_key_btn.click() ssh_key_e = self.find('textarea', By.CSS_SELECTOR, self.get_dialog()) assert ssh_key_e.get_attribute('readonly') == 'true' > self.dialog_button_click('cancel') test_webui/test_user.py:994: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ test_webui/ui_driver.py:705: in dialog_button_click self._button_click(s, dialog, name) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <ipatests.test_webui.test_user.TestSSHkeys object at 0x7f3742746340> selector = ".rcue-dialog-buttons button[name='cancel']" parent = <selenium.webdriver.firefox.webelement.FirefoxWebElement (session="8e921ef2-1e78-4acb-8877-30aa4a794ce1", element="cdcf252d-0045-48b6-96aa-09690ce295c5")> name = 'cancel' def _button_click(self, selector, parent, name=''): btn = self.find(selector, By.CSS_SELECTOR, parent, strict=True) self.move_to_element_in_page(btn) disabled = btn.get_attribute("disabled") > assert btn.is_displayed(), 'Button is not displayed: %s' % name E AssertionError: Button is not displayed: cancel test_webui/ui_driver.py:736: AssertionError
Issue happened only once, closing as worksforme
Metadata Update from @frenaud: - Issue close_status updated to: worksforme - Issue status updated to: Closed (was: Open)