GUI acceptance tests using environment deployed from packages.

Build: #2698 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,698 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': '000000000052684F...653139326361636866376130'}, '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': ['e884248749814cf6dac7']}}
task_name = 'parse-fetch-file-mounted'
selenium = {'browser': <selenium.webdriver.chrome.webdriver.WebDriver (session="8f84b51cf9b6dade878cf5f2168922ed")>}
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': ...f-23b39052252c")>}, 'file_browser': <tests.gui.utils.oneprovider.file_browser._FileBrowser object at 0x7f4e42e4d820>}})
popups = <class 'tests.gui.utils.common.popups.Popups'>
modals = <class 'tests.gui.utils.common.modals.Modals'>
clipboard = Clipboard(copy=<function clipboard.<locals>.copy at 0x7f4e42f6f310>, paste=<function clipboard.<locals>.paste at 0x7f4e42f6f3a0>)
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