Acceptance tests using different clients concurrently. Environment deployed from packages.
Build: #1880 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,880 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-22 07:54:07 Time2: access = 2021-09-22 07:54:08 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:340: 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': '53fcc7be2cbebdc20248a074a3215360bb7e8cd9b3542697f06eb023e5f03705', 'ip': '172.17.0.8...8df17360f6895c', 'hostname': 'dev-onezone.default.svc.cluster.local', 'ip': '172.17.0.10', 'name': 'dev-onezone', ...}} user = 'user1' users = {'admin': <tests.utils.user_utils.AdminUser object at 0x7fdfea73a780>, 'onepanel': <tests.utils.user_utils.AdminUser object at 0x7fdfea9beeb8>, 'user1': <tests.utils.user_utils.User object at 0x7fdfea9bef60>} 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-22 07:54:07 E Time2: access = 2021-09-22 07:54:08 E Comparator: equal tests/mixed/steps/rest/oneprovider/data.py:333: AssertionError