GUI acceptance tests using environment deployed from packages.
Build: #2679 failed
Job: automation-examples workflows was successful
user sees exception after execution of uploaded downloadfiles workflow finishes when using incorrect fetch file[1oz 1op openfaas]: Test case result
The below summarizes the result of the test " user sees exception after execution of uploaded downloadfiles workflow finishes when using incorrect fetch file[1oz 1op openfaas]" in build 2,679 of Onedata Products - gui acceptance pkg - automation-examples workflows.
- Description
- user sees exception after execution of uploaded downloadfiles workflow finishes when using incorrect fetch file[1oz 1op openfaas]
- Test class
- gui.scenarios.test_automation_examples_workflows_tests
- Method
- test_user_sees_exception_after_execution_of_uploaded_downloadfiles_workflow_finishes_when_using_incorrect_fetch_file[1oz_1op_openfaas]
- Jira Issue
-
- Duration
- 3 mins
- Status
- Failed (Existing Failure)
Error Log
KeyError: 'item' request = <FixtureRequest for <Function 'test_user_sees_exception_after_execution_of_uploaded_downloadfiles_workflow_finishes_when_using_incorrect_fetch_file[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': '0000000000528039...343861363861636831323962'}, 'reason': '$(contains ["ValueError", "not enough values to unpack (expected 3, got 1)"])'}} actual_content = {'description': 'Lambda exception occurred during item processing.', 'details': {'reason': 'Traceback (most recent cal... not enough values to unpack (expected 3, got 1)\n'}, 'referencedElements': {'itemTraceIds': ['ae295095ad5b8446c67e']}} task_name = 'parse-fetch-file-mounted' selenium = {'browser': <selenium.webdriver.chrome.webdriver.WebDriver (session="245fea5f64daf8313cb04bf798e3871e")>} 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': ...7-226fe52d0781")>}, 'file_browser': <tests.gui.utils.oneprovider.file_browser._FileBrowser object at 0x7f848d06c610>}}) popups = <class 'tests.gui.utils.common.popups.Popups'> modals = <class 'tests.gui.utils.common.modals.Modals'> clipboard = Clipboard(copy=<function clipboard.<locals>.copy at 0x7f848d25b820>, paste=<function clipboard.<locals>.paste at 0x7f848d25b8b0>) 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