GUI acceptance tests using environment deployed from packages.
Build: #2652 failed
Job: automation-examples workflows was successful
user sees desirable exception in task auditlog after changing exceptionprobability in echo lambda[1oz 1op openfaas]: Test case result
The below summarizes the result of the test " user sees desirable exception in task auditlog after changing exceptionprobability in echo lambda[1oz 1op openfaas]" in build 2,652 of Onedata Products - gui acceptance pkg - automation-examples workflows.
- Description
- user sees desirable exception in task auditlog after changing exceptionprobability in echo lambda[1oz 1op openfaas]
- Test class
- gui.scenarios.test_automation_examples_workflows_tests
- Method
- test_user_sees_desirable_exception_in_task_auditlog_after_changing_exceptionprobability_in_echo_lambda[1oz_1op_openfaas]
- Jira Issue
-
- Duration
- 3 mins
- Status
- Failed (Existing Failure)
Error Log
KeyError: 'item' request = <FixtureRequest for <Function 'test_user_sees_desirable_exception_in_task_auditlog_after_changing_exceptionprobability_in_echo_lambda[1oz_1op_openfaas]'>> @pytest.mark.usefixtures(*function_args) def scenario_wrapper(request): > _execute_scenario(feature, scenario, request, encoding) /usr/local/lib/python3.8/dist-packages/pytest_bdd/scenario.py:227: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/local/lib/python3.8/dist-packages/pytest_bdd/scenario.py:189: in _execute_scenario _execute_step_function(request, scenario, step, step_func) /usr/local/lib/python3.8/dist-packages/pytest_bdd/scenario.py:130: in _execute_step_function step_func(**kwargs) tests/utils/bdd_utils.py:78: in wrapper return fun(*ba.args, **ba.kwargs) tests/gui/meta_steps/oneprovider/automation/audit_log.py:486: in assert_content_of_task_audit_log compare_content_of_task_audit_log( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ content = {'description': 'Lambda exception occurred during item processing.', 'details': {'item': {'file_id': '0000000000529A79...2663931236464353836383038393037386135333331616263393832613362366636363963636864363462'}, 'reason': 'Random exception'}} actual_content = {'description': 'Lambda exception occurred during item processing.', 'details': {'reason': 'Random exception'}, 'referencedElements': {'itemTraceIds': ['7a8b4620d23e313ed002']}} task_name = 'echo' selenium = {'browser': <selenium.webdriver.chrome.webdriver.WebDriver (session="d95a2f0d5a5596ac76bdd08d0c2acb1d")>} browser_id = 'browser', oz_page = <class 'tests.gui.utils.onezone.OZLoggedIn'> op_container = <class 'tests.gui.utils.oneprovider.OPLoggedIn'> tmp_memory = defaultdict(<class 'dict'>, {'browser': {'shares': {}, 'spaces': {}, 'groups': {}, 'mailbox': {}, 'oz': {}, 'window': ...c-8b514381817c")>}, 'file_browser': <tests.gui.utils.oneprovider.file_browser._FileBrowser object at 0x7fe4b79ed7c0>}}) popups = <class 'tests.gui.utils.common.popups.Popups'> modals = <class 'tests.gui.utils.common.modals.Modals'> clipboard = Clipboard(copy=<function clipboard.<locals>.copy at 0x7fe4b7b383a0>, paste=<function clipboard.<locals>.paste at 0x7fe4b7b38430>) displays = {'browser': ':1006.0'} def compare_content_of_task_audit_log( content, actual_content, task_name, selenium, browser_id, oz_page, op_container, tmp_memory, popups, modals, clipboard, displays): expected_identical = ['status', 'fetchFileName', 'description'] actual_details = actual_content.get('details', False) details = content.get('details', False) reason = details.get('reason', False) if details else False item = details.get('item', False) if details else False for label in expected_identical: compare_to_expected_if_elem_exist_audit_log(content, label, actual_content, task_name) if reason: compare_content_reason_of_task_audit_log( reason, actual_details['reason'], selenium, browser_id, oz_page, op_container, tmp_memory, popups, modals, clipboard, displays, task_name) if item: file_id = item['file_id'].split(' ')[1].replace( ')', '').split('/') item['file_id'] = get_file_id_from_details_modal( selenium, browser_id, oz_page, file_id[0], op_container, tmp_memory, file_id[1], popups, modals, clipboard, displays) assert_elements_of_task_audit_log_are_the_same( > item, actual_details['item']['value'], 'Item', task_name) E KeyError: 'item' tests/gui/meta_steps/oneprovider/automation/audit_log.py:446: KeyError