Acceptance tests using different clients concurrently. Environment deployed from packages.
Build: #1875 failed
Job: Chrome nested directories tests failed
user create directory structure using client1 and using client2 sees that it has appeared[1oz 1op 1oc-web GUi-oneclient1]: Test case result
The below summarizes the result of the test " user create directory structure using client1 and using client2 sees that it has appeared[1oz 1op 1oc-web GUi-oneclient1]" in build 1,875 of Onedata Products - mixed acceptance pkg - Chrome nested directories tests.
- Description
- user create directory structure using client1 and using client2 sees that it has appeared[1oz 1op 1oc-web GUi-oneclient1]
- Test class
- mixed.scenarios.test_nested_directories
- Method
- test_user_create_directory_structure_using_client1_and_using_client2_sees_that_it_has_appeared[1oz_1op_1oc-web GUI-oneclient1]
- Duration
- 15 mins
- Status
- Failed (New Failure)
Error Log
AssertionError: dir3 not found in space1/dir1/dir2 subtree = ['dir3', {'dir4': ['20B-0.txt', '20B-1.txt', {'dir5': [{'dir6': [...]}]}]}] children = ['dir4'], cwd = 'space1/dir1/dir2' ls_fun = functools.partial(<function ls_dir_in_op_oneclient at 0x7fb014753730>, user='user1', users={'admin': <tests.utils.user....AdminUser object at 0x7fb0137ec048>, 'user1': <tests.utils.user_utils.User object at 0x7fb013585a58>}, host='client1') assert_file_content_fun = functools.partial(<function assert_file_content_in_op_oneclient at 0x7fb0147536a8>, user='user1', users={'admin': <tes....AdminUser object at 0x7fb0137ec048>, 'user1': <tests.utils.user_utils.User object at 0x7fb013585a58>}, host='client1') 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() E AttributeError: 'str' object has no attribute 'items' tests/mixed/utils/data.py:25: AttributeError During handling of the above exception, another exception occurred: request = <FixtureRequest for <Function 'test_user_create_directory_structure_using_client1_and_using_client2_sees_that_it_has_appeared[1oz_1op_1oc-web GUI-oneclient1]'>> @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) <decorator-gen-819>:2: in assert_directory_structure_in_op ??? tests/utils/utils.py:90: in wrapper return fun(*args, **kwargs) tests/mixed/steps/data_basic.py:503: in assert_directory_structure_in_op oneclient_host) tests/mixed/steps/oneclient/data_basic.py:135: in assert_space_content_in_op_oneclient assert_file_content_fun) tests/mixed/utils/data.py:52: in check_files_tree assert_file_content_fun) tests/mixed/utils/data.py:52: in check_files_tree assert_file_content_fun) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ subtree = ['dir3', {'dir4': ['20B-0.txt', '20B-1.txt', {'dir5': [{'dir6': [...]}]}]}] children = ['dir4'], cwd = 'space1/dir1/dir2' ls_fun = functools.partial(<function ls_dir_in_op_oneclient at 0x7fb014753730>, user='user1', users={'admin': <tests.utils.user....AdminUser object at 0x7fb0137ec048>, 'user1': <tests.utils.user_utils.User object at 0x7fb013585a58>}, host='client1') assert_file_content_fun = functools.partial(<function assert_file_content_in_op_oneclient at 0x7fb0147536a8>, user='user1', users={'admin': <tes....AdminUser object at 0x7fb0137ec048>, 'user1': <tests.utils.user_utils.User object at 0x7fb013585a58>}, host='client1') 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 E AssertionError: dir3 not found in space1/dir1/dir2 tests/mixed/utils/data.py:28: AssertionError