report.html

Report generated on 22-Mar-2020 at 11:18:17 by pytest-html v2.0.1

Environment

Packages {'pytest': '5.3.5', 'py': '1.5.4', 'pluggy': '0.13.1'}
Platform Linux-5.3.11-100.fc29.x86_64-x86_64-with-fedora-29-Twenty_Nine
Plugins {'metadata': '1.8.0', 'html': '2.0.1', 'sourceorder': '0.5', 'multihost': '3.0'}
Python 3.7.5

Summary

10 tests ran in 600.43 seconds.

9 passed, 0 skipped, 1 failed, 0 errors, 0 expected failures, 0 unexpected passes

Results

Result Test Duration Links
Failed ::test_selfservice::test_permission_negative 62.73
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
Passed ::test_delegation::test_crud 38.65
No log output captured.
Passed ::test_rbac::test_crud 85.17
No log output captured.
Passed ::test_selfservice::test_crud 31.67
No log output captured.
Passed ::test_selfservice::test_add_all_attr 64.49
No log output captured.
Passed ::test_selfservice::test_add_scenarios 47.24
No log output captured.
Passed ::test_selfservice::test_undo_reset 33.09
No log output captured.
Passed ::test_selfservice::test_del_multiple_permission 31.93
No log output captured.
Passed ::test_selfservice::test_permission_using_enter_key 19.85
No log output captured.
Passed ::test_selfservice::test_reset_sshkey_permsission 56.00
No log output captured.