GUI acceptance tests using environment deployed from packages.

Build: #2752 failed

Job: Oneprovider archives was successful

Stages & jobs

  1. Qnthack - copy quarantine

  2. Acceptance Test

  3. Qnthack - rerun

user sees bagit metadata files and directory tree in aip tab and directory tree in dip tab in archive browser after creating archive with bagit layout and include dip option[1oz 1op deployed]: Test case result

The below summarizes the result of the test " user sees bagit metadata files and directory tree in aip tab and directory tree in dip tab in archive browser after creating archive with bagit layout and include dip option[1oz 1op deployed]" in build 2,752 of Onedata Products - gui acceptance pkg - Oneprovider archives.
Description
user sees bagit metadata files and directory tree in aip tab and directory tree in dip tab in archive browser after creating archive with bagit layout and include dip option[1oz 1op deployed]
Test class
gui.scenarios.test_oneprovider_archives
Method
test_user_sees_bagit_metadata_files_and_directory_tree_in_aip_tab_and_directory_tree_in_dip_tab_in_archive_browser_after_creating_archive_with_bagit_layout_and_include_dip_option[1oz_1op_deployed]
Jira Issue
Duration
6 mins
Status
Failed (Existing Failure)

Error Log

AssertionError: not found "manifest-md5.txt" in browser
subtree = ['bagit.txt', {'data': [{'dir1': [{'dir2': [...]}]}]}, 'manifest-md5.txt', 'manifest-sha1.txt', 'manifest-sha256.txt', 'manifest-sha512.txt', ...]
user = 'browser'
tmp_memory = defaultdict(<class 'dict'>, {'browser': {'shares': {}, 'spaces': {}, 'groups': {}, 'mailbox': {}, 'oz': {}, 'window': ...ile_browser._ArchiveFileBrowser object at 0x7f90ac915370>}, 'first archive': 'f370289ae67e5605eb02e0bd95408e95ch3be3'})
cwd = ''
selenium = {'browser': <selenium.webdriver.chrome.webdriver.WebDriver (session="7a08d718b7b1cace7315076c6eca48ab")>}
op_container = <class 'tests.gui.utils.oneprovider.OPLoggedIn'>
tmpdir = local('/tmp/pytest-of-bamboo/pytest-0/test_user_sees_bagit_metadata_1')
which_browser = 'archive file browser', description = 'first archive'

    def _check_files_tree(subtree, user, tmp_memory, cwd, selenium, op_container,
                          tmpdir, which_browser='file browser', description=''):
        for item in subtree:
            try:
>               [(item_name, item_subtree)] = item.items()
E               AttributeError: 'str' object has no attribute 'items'

tests/gui/meta_steps/oneprovider/data.py:232: AttributeError

During handling of the above exception, another exception occurred:

request = <FixtureRequest for <Function 'test_user_sees_bagit_metadata_files_and_directory_tree_in_aip_tab_and_directory_tree_in_dip_tab_in_archive_browser_after_creating_archive_with_bagit_layout_and_include_dip_option[1oz_1op_deployed]'>>

    @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)
tests/gui/meta_steps/oneprovider/data.py:183: in check_file_structure_for_archive
    _check_files_tree(subtree, browser_id, tmp_memory, '', selenium,
tests/gui/meta_steps/oneprovider/data.py:234: in _check_files_tree
    assert_items_presence_in_browser(selenium, user, item, tmp_memory,
tests/utils/bdd_utils.py:78: in wrapper
    return fun(*ba.args, **ba.kwargs)
tests/utils/bdd_utils.py:78: in wrapper
    return fun(*ba.args, **ba.kwargs)
tests/utils/bdd_utils.py:78: in wrapper
    return fun(*ba.args, **ba.kwargs)
<decorator-gen-623>:2: in assert_items_presence_in_browser
    ???
tests/utils/utils.py:95: in wrapper
    return fun(*args, **kwargs)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

selenium = {'browser': <selenium.webdriver.chrome.webdriver.WebDriver (session="7a08d718b7b1cace7315076c6eca48ab")>}
browser_id = 'browser', item_list = 'manifest-md5.txt'
tmp_memory = defaultdict(<class 'dict'>, {'browser': {'shares': {}, 'spaces': {}, 'groups': {}, 'mailbox': {}, 'oz': {}, 'window': ...ile_browser._ArchiveFileBrowser object at 0x7f90ac915370>}, 'first archive': 'f370289ae67e5605eb02e0bd95408e95ch3be3'})
which_browser = 'archive file browser'

    @wt(parsers.parse('user of {browser_id} sees item(s) '
                      'named {item_list} in {which_browser}'))
    @wt(parsers.parse('user of {browser_id} sees that item named '
                      '{item_list} has appeared in {which_browser}'))
    @wt(parsers.parse('user of {browser_id} sees that items named '
                      '{item_list} have appeared in {which_browser}'))
    @repeat_failed(timeout=WAIT_BACKEND)
    def assert_items_presence_in_browser(selenium, browser_id, item_list, tmp_memory,
                                         which_browser='file browser'):
        data = _get_items_list_from_browser(selenium, browser_id, tmp_memory,
                                            which_browser)
        for item_name in parse_seq(item_list):
>           assert item_name in data, (f'not found "{item_name}" '
                                       f'in browser')
E           AssertionError: not found "manifest-md5.txt" in browser

tests/gui/steps/oneprovider/browser.py:131: AssertionError