GUI acceptance tests using environment deployed from packages.
Build: #2808 failed
Job: Atm BagIt failed
user sees desirable exception in task audit log after executing bagituploader with invalid archive input archive[1oz 1op openfaas-"missing fetch txt.zip"-bagit missing fetch txt/fetch.txt referenced by bagit missing fetch txt/tagmanifest-md5.txt not found]: Test case result
The below summarizes the result of the test " user sees desirable exception in task audit log after executing bagituploader with invalid archive input archive[1oz 1op openfaas-"missing fetch txt.zip"-bagit missing fetch txt/fetch.txt referenced by bagit missing fetch txt/tagmanifest-md5.txt not found]" in build 2,808 of Onedata Products - gui acceptance pkg - Atm BagIt.
- Description
- user sees desirable exception in task audit log after executing bagituploader with invalid archive input archive[1oz 1op openfaas-"missing fetch txt.zip"-bagit missing fetch txt/fetch.txt referenced by bagit missing fetch txt/tagmanifest-md5.txt not found]
- Test class
- gui.scenarios.test_automation_bagit
- Method
- test_user_sees_desirable_exception_in_task_audit_log_after_executing_bagituploader_with_invalid_archive__input_archive[1oz_1op_openfaas-"missing_fetch_txt.zip"-bagit_missing_fetch_txt/fetch.txt referenced by bagit_missing_fetch_txt/tagmanifest-md5.txt not found]
- Jira Issue
-
- Duration
- 4 mins
- Status
- Failed (Existing Failure)
Error Log
AssertionError: actual reason content for task: "bagit_missing_fetch_txt/fetch.txt referenced by bagit_missing_fetch_txt/tagmanifest-sha256.txt not found" is not as expected: "bagit_missing_fetch_txt/fetch.txt referenced by bagit_missing_fetch_txt/tagmanifest-md5.txt not found" request = <FixtureRequest for <Function 'test_user_sees_desirable_exception_in_task_audit_log_after_executing_bagituploader_with...etch_txt.zip"-bagit_missing_fetch_txt/fetch.txt referenced by bagit_missing_fetch_txt/tagmanifest-md5.txt not found]'>> @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) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ expected_data = 'bagit_missing_fetch_txt/fetch.txt referenced by bagit_missing_fetch_txt/tagmanifest-md5.txt not found' element = 'reason' selenium = {'browser': <selenium.webdriver.chrome.webdriver.WebDriver (session="36c7c74cb23efb3860b9c82211679bfc")>} browser_id = 'browser' op_container = <class 'tests.gui.utils.oneprovider.OPLoggedIn'> lane_name = 'validate', task_name = 'bagit-uploader-validate', ordinal = '1st' modals = <class 'tests.gui.utils.common.modals.Modals'> clipboard = Clipboard(copy=<function clipboard.<locals>.copy at 0x7f4d40945dc0>, paste=<function clipboard.<locals>.paste at 0x7f4d40945e50>) displays = {'browser': ':1006.0'} @wt(parsers.parse('user of {browser_id} sees that "{element}" content of audit' ' log in task "{task_name}" in {ordinal} parallel box in lane' ' "{lane_name}" is {expected_data}')) def assert_element_content_in_task_audit_log( expected_data, element, selenium, browser_id, op_container, lane_name, task_name, ordinal, modals, clipboard, displays): click = 'click' link = 'Audit log' close = 'closes' expected_data = expected_data.replace('"', '') driver = selenium[browser_id] click_on_task_in_lane(selenium, browser_id, op_container, lane_name, task_name, ordinal, click) click_on_link_in_task_box(selenium, browser_id, op_container, lane_name, task_name, link, ordinal) # wait a moment for modal to open time.sleep(1) modal = modals(driver).audit_log modal.user_log.click() modal.copy_json() actual_items = json.loads(clipboard.paste(display=displays[browser_id])) actual_data = actual_items['content'][element] err_msg = (f'actual {element} content for task: "{actual_data}" is not ' f'as expected: "{expected_data}"') # this is done because of very specific problem with passing (data/) # as expected_data actual_data = actual_data.replace("(data/) ", "") > assert actual_data.lower() == expected_data.replace("\\n", "\n"), err_msg E AssertionError: actual reason content for task: "bagit_missing_fetch_txt/fetch.txt referenced by bagit_missing_fetch_txt/tagmanifest-sha256.txt not found" is not as expected: "bagit_missing_fetch_txt/fetch.txt referenced by bagit_missing_fetch_txt/tagmanifest-md5.txt not found" tests/gui/meta_steps/oneprovider/automation/audit_log.py:621: AssertionError