Acceptance tests using different clients concurrently. Environment deployed from packages.
Build: #3269 failed
Job: Storage sync failed
files tree with specified depth is imported to space after changing import depth and enable delete detection option[1oz 1op 1oc-RESt-web GUi]: Test case result
The below summarizes the result of the test " files tree with specified depth is imported to space after changing import depth and enable delete detection option[1oz 1op 1oc-RESt-web GUi]" in build 3,269 of Onedata Products - mixed acceptance pkg - Storage sync.
- Description
- files tree with specified depth is imported to space after changing import depth and enable delete detection option[1oz 1op 1oc-RESt-web GUi]
- Test class
- mixed.scenarios.test_storage_sync
- Method
- test_files_tree_with_specified_depth_is_imported_to_space_after_changing_import_depth_and_enable_delete_detection_option[1oz_1op_1oc-REST-web GUI]
- Jira Issue
-
- Duration
- 5 mins
- Status
- Failed (New Failure)
Error Log
AssertionError: Directory dir2 in /space3 has wrong number of children. Expected: 1, got: 1 fixturefunc = <function assert_space_content_in_op at 0x7f83c319b4c0> request = <FixtureRequest for <Function test_files_tree_with_specified_depth_is_imported_to_space_after_changing_import_depth_and_enable_delete_detection_option[1oz_1op_1oc-REST-web GUI]>> kwargs = {'client': 'REST', 'config': '- dir2: 1', 'host': 'oneprovider-1', 'hosts': {'oneclient-1': {'container-id': 'cbb849c4...d161e75', 'hostname': 'dev-onezone.default.svc.cluster.local', 'ip': '10.244.28.63', 'name': 'dev-onezone', ...}}, ...} def call_fixture_func( fixturefunc: "_FixtureFunc[FixtureValue]", request: FixtureRequest, kwargs ) -> FixtureValue: if is_generator(fixturefunc): fixturefunc = cast( Callable[..., Generator[FixtureValue, None, None]], fixturefunc ) generator = fixturefunc(**kwargs) try: fixture_result = next(generator) except StopIteration: raise ValueError(f"{request.fixturename} did not yield a value") from None finalizer = functools.partial(_teardown_yield_fixture, fixturefunc, generator) request.addfinalizer(finalizer) else: fixturefunc = cast(Callable[..., FixtureValue], fixturefunc) > fixture_result = fixturefunc(**kwargs) /usr/local/lib/python3.12/dist-packages/_pytest/fixtures.py:913: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/utils/bdd_utils.py:78: in wrapper return fun(*ba.args, **ba.kwargs) /usr/local/lib/python3.12/dist-packages/decorator.py:232: in fun return caller(func, *(extras + args), **kw) tests/utils/utils.py:93: in wrapper return fun(*args, **kwargs) tests/mixed/steps/onepanel_basic.py:836: in assert_space_content_in_op assert_space_content_in_op_rest( tests/mixed/steps/rest/oneprovider/data.py:75: in assert_space_content_in_op_rest check_files_tree( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ subtree = [{'dir2': 1}], children = ['dir2'], cwd = '/space3' ls_fun = functools.partial(<function _list_files at 0x7f83c33582c0>, user='user1', users={'admin': <tests.utils.user_utils.Admi...19ebf3220a076f43446f477dfa1870bd4b5bd6fd161e75', 'panel': {'hostname': 'dev-onezone.default.svc.cluster.local:9443'}}}) assert_file_content_fun = functools.partial(<function assert_file_content_in_op_rest at 0x7f83c3358360>, user='user1', users={'admin': <tests.ut...19ebf3220a076f43446f477dfa1870bd4b5bd6fd161e75', 'panel': {'hostname': 'dev-onezone.default.svc.cluster.local:9443'}}}) def check_files_tree(subtree, children, cwd, ls_fun, assert_file_content_fun): """This function recursively checks files tree: - for directory it checks if all elements listed in children are present. Then if any directory listed in children has description of its file tree, function make recursive call for that subdirectory. - for file if description is specified function checks if content of file is the same as provided """ for item in subtree: try: [(item_name, item_desc)] = item.items() except AttributeError: assert_msg = f"{item} not found in {cwd}" assert item in children, assert_msg if item.startswith("dir"): item_children = ls_fun(os.path.join(cwd, item)) assert_msg = f"Directory {item} in {cwd} is not empty" assert len(item_children) == 0, assert_msg else: assert_msg = f"{item_name} not found in {cwd}" assert item_name in children, assert_msg # if item is directory go deeper if item_name.startswith("dir"): item_children = ls_fun(os.path.join(cwd, item_name)) if isinstance(item_desc, int): assert_msg = ( f"Directory {item_name} in {cwd} has wrong number of " f"children. Expected: {item_desc}, got: {len(children)}" ) > assert len(item_children) == item_desc, assert_msg E AssertionError: Directory dir2 in /space3 has wrong number of children. Expected: 1, got: 1 tests/mixed/utils/data.py:44: AssertionError