Acceptance tests using different clients concurrently. Environment deployed from packages.
Build: #2318 was successful
Job: Directories times was successful
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 2,318 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
- 3 mins
- Status
- Failed (New Failure)
Error Log
AssertionError: Time comparison failed. Time1: modification = 2022-04-27 19:41:11 Time2: access = 2022-04-27 19:41:12 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:492: in assert_time_relation host, hosts, user, users, cdmi) tests/mixed/steps/rest/oneprovider/data.py:313: 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': '340ae41511ad475bb7bd2ac30f383249d5c921c2ade7a736c14cf28a89f10adb', 'ip': '172.17.0.1...7ddfcf8e6f81aa1', '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 0x7fdcd19c8860>, 'onepanel': <tests.utils.user_utils.AdminUser object at 0x7fdcd2294cc0>, 'user1': <tests.utils.user_utils.User object at 0x7fdcd1967c88>} 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 = 2022-04-27 19:41:11 E Time2: access = 2022-04-27 19:41:12 E Comparator: equal tests/mixed/steps/rest/oneprovider/data.py:306: AssertionError