GUI acceptance tests using environment deployed from packages.

Build: #2691 failed

Job: automation-examples workflows was successful

Stages & jobs

  1. Qnthack - copy quarantine

  2. Acceptance Test

  3. Qnthack - rerun

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,691 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
4 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': '0000000000521A52...326561663231636831336633'}, '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': ['1a6f6717fc1d480896cd']}}
task_name = 'parse-fetch-file-mounted'
selenium = {'browser': <selenium.webdriver.chrome.webdriver.WebDriver (session="efd61d0a6b13a40c209fa535943c30f2")>}
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-f5b347bbdba1")>}, 'file_browser': <tests.gui.utils.oneprovider.file_browser._FileBrowser object at 0x7f428fa75a30>}})
popups = <class 'tests.gui.utils.common.popups.Popups'>
modals = <class 'tests.gui.utils.common.modals.Modals'>
clipboard = Clipboard(copy=<function clipboard.<locals>.copy at 0x7f428fac8310>, paste=<function clipboard.<locals>.paste at 0x7f428fac83a0>)
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