GUI acceptance tests using environment deployed from packages.

Build: #2653 failed

Job: automation-examples workflows was successful

Stages & jobs

  1. Qnthack - copy quarantine

  2. Acceptance Test

  3. Qnthack - rerun

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,653 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
6 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': '000000000052D4CC...6366239236437356161303239376634333961656637376435346533313733323939623835636866363761'}, 'reason': 'Random exception'}}
actual_content = {'description': 'Lambda exception occurred during item processing.', 'details': {'reason': 'Random exception'}, 'referencedElements': {'itemTraceIds': ['c97e2a1154eab57a69fc']}}
task_name = 'echo'
selenium = {'browser': <selenium.webdriver.chrome.webdriver.WebDriver (session="840936db4d7198dd715ef3a391adcc7b")>}
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-e3c2a4226f7c")>}, 'file_browser': <tests.gui.utils.oneprovider.file_browser._FileBrowser object at 0x7f9ecff8e640>}})
popups = <class 'tests.gui.utils.common.popups.Popups'>
modals = <class 'tests.gui.utils.common.modals.Modals'>
clipboard = Clipboard(copy=<function clipboard.<locals>.copy at 0x7f9ed01b6430>, paste=<function clipboard.<locals>.paste at 0x7f9ed01b64c0>)
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