Acceptance tests using different clients concurrently. Environment deployed from packages.
Build: #1896 failed
Job: Directories times failed
user changes directory using client2 and using client1 sees that modification time has changed[1oz 1op 1oc-RESt-web GUi-equal to]: Test case result
The below summarizes the result of the test " user changes directory using client2 and using client1 sees that modification time has changed[1oz 1op 1oc-RESt-web GUi-equal to]" in build 1,896 of Onedata Products - mixed acceptance pkg - Chrome directories times tests.
- Description
- user changes directory using client2 and using client1 sees that modification time has changed[1oz 1op 1oc-RESt-web GUi-equal to]
- Test class
- mixed.scenarios.test_directories_times
- Method
- test_user_changes_directory_using_client2_and_using_client1_sees_that_modification_time_has_changed[1oz_1op_1oc-REST-web GUI-equal to]
- Jira Issue
-
- Duration
- 2 mins
- Status
- Failed (New Failure)
Error Log
AssertionError: Time comparison failed. Time1: modification = 2021-09-24 23:52:43 Time2: access = 2021-09-24 23:52:44 Comparator: equal request = <FixtureRequest for <Function 'test_user_changes_directory_using_client2_and_using_client1_sees_that_modification_time_has_changed[1oz_1op_1oc-REST-web GUI-equal to]'>> @pytest.mark.usefixtures(*function_args) def scenario_wrapper(request): > _execute_scenario(feature, scenario, request, encoding) /usr/local/lib/python3.6/dist-packages/pytest_bdd/scenario.py:227: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/local/lib/python3.6/dist-packages/pytest_bdd/scenario.py:189: in _execute_scenario _execute_step_function(request, scenario, step, step_func) /usr/local/lib/python3.6/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/mixed/steps/data_basic.py:437: in assert_time_relation host, hosts, user, users, cdmi) tests/mixed/steps/rest/oneprovider/data.py:339: in assert_time_relation_in_op_rest users, cdmi) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ path = 'space1/dir1', path2 = 'space1/dir1', time1_name = 'modification' time2_name = 'access', comparator = 'equal', host = 'oneprovider-1' hosts = {'oneclient-1': {'container-id': 'b798e20bf018061583de1a43e9d65d381930df3cdd21e20562ed5a16597ae708', 'ip': '172.17.0.9...093192eecefe3be', 'hostname': 'dev-onezone.default.svc.cluster.local', 'ip': '172.17.0.6', 'name': 'dev-onezone', ...}} user = 'user1' users = {'admin': <tests.utils.user_utils.AdminUser object at 0x7ff000d35320>, 'onepanel': <tests.utils.user_utils.AdminUser object at 0x7ff000e2a2e8>, 'user1': <tests.utils.user_utils.User object at 0x7ff000e5f828>} cdmi = <class 'tests.gui.utils.oneservices.cdmi.CDMIClient'> def assert_files_time_relation_in_op_rest(path, path2, time1_name, time2_name, comparator, host, hosts, user, users, cdmi): client = cdmi(hosts[host]['hostname'], users[user].token) metadata1 = client.read_metadata(path)['metadata'] metadata2 = client.read_metadata(path2)['metadata'] attr1 = time_attr(time1_name, 'cdmi') attr2 = time_attr(time2_name, 'cdmi') date_fmt = '%Y-%m-%dT%H:%M:%SZ' try: time1 = datetime.strptime(metadata1[attr1], date_fmt) time2 = datetime.strptime(metadata2[attr2], date_fmt) except KeyError as ex: assert False, 'File {} has no {} metadata'.format(path, ex.args[0]) assert compare(time1, time2, comparator), ('Time comparison failed. \n' 'Time1: {} = {} \n' 'Time2: {} = {} \n' 'Comparator: {}' .format(time1_name, time1, time2_name, time2, > comparator)) E AssertionError: Time comparison failed. E Time1: modification = 2021-09-24 23:52:43 E Time2: access = 2021-09-24 23:52:44 E Comparator: equal tests/mixed/steps/rest/oneprovider/data.py:332: AssertionError