Acceptance tests using different clients concurrently. Environment deployed from packages.
Build: #1253 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,253 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
- 1 min
- Status
- Failed (New Failure)
Error Log
AssertionError: Time comparison failed. Time1: modification = 2020-12-16 21:00:53 Time2: access = 2020-12-16 21:00:54 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:77: in wrapper return fun(*ba.args, **ba.kwargs) tests/mixed/steps/data_basic.py:436: 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': 'e1e67616b2883ea4411287d705564c81bd011d7be350880e41ec599c3b1294c5', 'ip': '172.17.0.1...3b10fd9ac34cce8', '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 0x7f18b3f3da58>, 'onepanel': <tests.utils.user_utils.AdminUser object at 0x7f18b3e2ccc0>, 'user1': <tests.utils.user_utils.User object at 0x7f18b3e98518>} 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 = 2020-12-16 21:00:53 E Time2: access = 2020-12-16 21:00:54 E Comparator: equal tests/mixed/steps/rest/oneprovider/data.py:333: AssertionError