Acceptance tests using different clients concurrently. Environment deployed from packages.

Build: #2671 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 2,671 of Onedata Products - mixed acceptance pkg - Chrome 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
4 mins
Status
Failed (New Failure)

Error Log

AssertionError: Directory dir2 in /space3 has wrong number of children. Expected: 1, got: 2
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]'>>

    @pytest.mark.usefixtures(*function_args)
    def scenario_wrapper(request):
>       _execute_scenario(feature, scenario, request, encoding)

/usr/local/lib/python3.8/dist-packages/pytest_bdd/scenario.py:227: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/local/lib/python3.8/dist-packages/pytest_bdd/scenario.py:189: in _execute_scenario
    _execute_step_function(request, scenario, step, step_func)
/usr/local/lib/python3.8/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)
<decorator-gen-1179>:2: in assert_space_content_in_op
    ???
tests/utils/utils.py:95: in wrapper
    return fun(*args, **kwargs)
tests/mixed/steps/onepanel_basic.py:541: in assert_space_content_in_op
    assert_space_content_in_op_rest(user, users, hosts, config, space_name,
tests/mixed/steps/rest/oneprovider/data.py:64: in assert_space_content_in_op_rest
    check_files_tree(yaml.load(config), children, cwd, ls_fun,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

subtree = [{'dir2': 1}, {'dir2': [{'dir22': 10}]}], children = ['dir2']
cwd = '/space3'
ls_fun = functools.partial(<function _list_files at 0x7f30c6cc8430>, user='user1', users={'admin': <tests.utils.user_utils.Admi...283b443d7065b26025152d3056d99564d583050e466225', 'panel': {'hostname': 'dev-onezone.default.svc.cluster.local:9443'}}})
assert_file_content_fun = functools.partial(<function assert_file_content_in_op_rest at 0x7f30c6cc84c0>, user='user1', users={'admin': <tests.ut...283b443d7065b26025152d3056d99564d583050e466225', '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 = '{} not found in {}'.format(item, cwd)
                assert item in children, assert_msg
                if item.startswith('dir'):
                    item_children = ls_fun(os.path.join(cwd, item))
                    assert_msg = 'Directory {} in {} is not empty'.format(item,
                                                                          cwd)
                    assert len(item_children) == 0, assert_msg
    
            else:
                assert_msg = '{} not found in {}'.format(item_name, 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 = ('Directory {} in {} has wrong number of '
                                      'children. Expected: {}, got: {}'
                                      .format(item_name, cwd, item_desc,
                                              len(item_children)))
>                       assert len(item_children) == item_desc, assert_msg
E                       AssertionError: Directory dir2 in /space3 has wrong number of children. Expected: 1, got: 2

tests/mixed/utils/data.py:47: AssertionError