#8237 Nightly test failure in fedora-29/test_webui_rbac::test_selfservice::test_permission_negative
Opened 9 months ago by frenaud. Modified 9 months ago

The nightly test fedora-29/test_webui_rbac failed in ::test_selfservice::test_permission_negative in PR 4409: see Logs:

self = <ipatests.test_webui.test_selfservice.test_selfservice object at 0x7f89e2aad690>

    @screenshot
    def test_permission_negative(self):
        """
        Negative test cases for self service permission
        """
        self.init_app()

        # try to add duplicate entry
        self.add_record(data_selfservice.ENTITY, data_selfservice.DATA1)
        self.add_record(data_selfservice.ENTITY, data_selfservice.DATA1,
                        negative=True, pre_delete=False)
        self.assert_last_error_dialog(ENTRY_EXIST)
        self.close_all_dialogs()
        self.delete(data_selfservice.ENTITY, [data_selfservice.DATA1])
        self.close_notifications()

        # try to add permission without name and attribute
        self.navigate_to_entity(data_selfservice.ENTITY)
        self.wait_for_request()
        self.facet_button_click('add')
        self.dialog_button_click('add')
        self.assert_field_validation(FIELD_REQ, field='aciname')
        self.dialog_button_click('cancel')

        # try to add permission without name but having attribute
        self.navigate_to_entity(data_selfservice.ENTITY)
        self.wait_for_request()
        self.facet_button_click('add')
        self.check_option('attrs', 'displayname')
        self.dialog_button_click('add')
        self.assert_field_validation(FIELD_REQ, field='aciname')
        self.dialog_button_click('cancel')

        # try to add permission without having attribute.
        self.navigate_to_entity(data_selfservice.ENTITY)
        self.wait_for_request()
        self.facet_button_click('add')
        self.fill_textbox('aciname', data_selfservice.DATA1['pkey'])
        self.dialog_button_click('add')
        self.assert_field_validation(FIELD_REQ, field='attrs')
        self.dialog_button_click('cancel')

        # try to add aciname with leading space.
        self.navigate_to_entity(data_selfservice.ENTITY)
        self.wait_for_request()
        self.facet_button_click('add')
        self.fill_textbox('aciname',
                          ' {}'.format(data_selfservice.DATA1['pkey']))
        self.check_option('attrs', 'audio')
        self.dialog_button_click('add')
        self.assert_last_error_dialog(INV_NAME)
        self.close_all_dialogs()

        # try to add aciname with trailing space
        self.navigate_to_entity(data_selfservice.ENTITY)
        self.wait_for_request()
        self.facet_button_click('add')
        self.fill_textbox('aciname',
                          '{} '.format(data_selfservice.DATA1['pkey']))
        self.check_option('attrs', 'audio')
        self.dialog_button_click('add')
        self.assert_last_error_dialog(INV_NAME)
        self.dialog_button_click('cancel')
>       self.dialog_button_click('cancel')

/usr/lib/python3.7/site-packages/ipatests/test_webui/test_selfservice.py:196: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib/python3.7/site-packages/ipatests/test_webui/ui_driver.py:716: in dialog_button_click
    self._button_click(s, dialog, name)
/usr/lib/python3.7/site-packages/ipatests/test_webui/ui_driver.py:750: in _button_click
    'Button is not displayed: %s' % (name or selector)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <selenium.webdriver.support.wait.WebDriverWait (session="ce19e4a5-82f0-42b4-b7f0-c85a29defc09")>
method = <function UI_driver._button_click.<locals>.<lambda> at 0x7f89e2b48e60>
message = 'Button is not displayed: cancel'

    def until(self, method, message=''):
        """Calls the method provided with the driver as an argument until the \
        return value is not False."""
        screen = None
        stacktrace = None

        end_time = time.time() + self._timeout
        while True:
            try:
                value = method(self._driver)
                if value:
                    return value
            except self._ignored_exceptions as exc:
                screen = getattr(exc, 'screen', None)
                stacktrace = getattr(exc, 'stacktrace', None)
            time.sleep(self._poll)
            if time.time() > end_time:
                break
>       raise TimeoutException(message, screen, stacktrace)
E       selenium.common.exceptions.TimeoutException: Message: Button is not displayed: cancel

/usr/local/lib/python3.7/site-packages/selenium/webdriver/support/wait.py:80: TimeoutException

Login to comment on this ticket.

Metadata