GUI acceptance tests using environment deployed from packages.
Build: #2801 failed
Job: Atm BagIt failed
user sees desirable exception in task audit log after executing bagituploader with invalid archive input archive[1oz 1op openfaas-"wrong tagmanifest checksums.zip"-md5 checksum verification failed for macaroon bag1/fetch.txt.\\n expected: 5e8594d60bc90071ae12ad9b589166be, calculated: ceb502eb82f571ea033f743f3c3c9123]: 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-"wrong tagmanifest checksums.zip"-md5 checksum verification failed for macaroon bag1/fetch.txt.\\n expected: 5e8594d60bc90071ae12ad9b589166be, calculated: ceb502eb82f571ea033f743f3c3c9123]" in build 2,801 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-"wrong tagmanifest checksums.zip"-md5 checksum verification failed for macaroon bag1/fetch.txt.\\n expected: 5e8594d60bc90071ae12ad9b589166be, calculated: ceb502eb82f571ea033f743f3c3c9123]
- 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-"wrong_tagmanifest_checksums.zip"-md5 checksum verification failed for macaroon_bag1/fetch.txt.\\nExpected: 5e8594d60bc90071ae12ad9b589166be, Calculated: ceb502eb82f571ea033f743f3c3c9123]
- Jira Issue
-
- Duration
- 4 mins
- Status
- Failed (New Failure)
Error Log
AssertionError: actual reason content for task: "sha256 checksum verification failed for macaroon_bag1/fetch.txt. Expected: a4127b2d0ced5571d738917292cb64ae686bea0c016d18a66029062b43dbd7eb, Calculated: 8db8b25444ca1130c2150fe622df8aac8e5604332cd0ec84e80adb9ce90240ab" is not as expected: "md5 checksum verification failed for macaroon_bag1/fetch.txt.\nexpected: 5e8594d60bc90071ae12ad9b589166be, calculated: ceb502eb82f571ea033f743f3c3c9123" request = <FixtureRequest for <Function 'test_user_sees_desirable_exception_in_task_audit_log_after_executing_bagituploader_with...caroon_bag1/fetch.txt.\\\\nExpected: 5e8594d60bc90071ae12ad9b589166be, Calculated: ceb502eb82f571ea033f743f3c3c9123]'>> @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 = 'md5 checksum verification failed for macaroon_bag1/fetch.txt.\\nexpected: 5e8594d60bc90071ae12ad9b589166be, calculated: ceb502eb82f571ea033f743f3c3c9123' element = 'reason' selenium = {'browser': <selenium.webdriver.chrome.webdriver.WebDriver (session="91b524173c9d2f4916aababd4a47398c")>} 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 0x7fea503b0d30>, paste=<function clipboard.<locals>.paste at 0x7fea503b0dc0>) 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: "sha256 checksum verification failed for macaroon_bag1/fetch.txt. E Expected: a4127b2d0ced5571d738917292cb64ae686bea0c016d18a66029062b43dbd7eb, Calculated: 8db8b25444ca1130c2150fe622df8aac8e5604332cd0ec84e80adb9ce90240ab" is not as expected: "md5 checksum verification failed for macaroon_bag1/fetch.txt.\nexpected: 5e8594d60bc90071ae12ad9b589166be, calculated: ceb502eb82f571ea033f743f3c3c9123" tests/gui/meta_steps/oneprovider/automation/audit_log.py:621: AssertionError