GUI acceptance tests using environment deployed from packages.

Build: #2915 failed

Job: Onezone data discovery failed

Stages & jobs

  1. Qnthack - copy quarantine

  2. Acceptance Test

  3. Qnthack - rerun

    Final

public harvester site is updated when file metadata is updated in space of original harvester[1oz 1op elasticsearch]: Test case result

The below summarizes the result of the test " public harvester site is updated when file metadata is updated in space of original harvester[1oz 1op elasticsearch]" in build 2,915 of Onedata Products - gui acceptance pkg - Onezone data discovery.
Description
public harvester site is updated when file metadata is updated in space of original harvester[1oz 1op elasticsearch]
Test class
gui.scenarios.test_onezone_data_discovery
Method
test_public_harvester_site_is_updated_when_file_metadata_is_updated_in_space_of_original_harvester[1oz_1op_elasticsearch]
Duration
4 mins
Status
Failed (Existing Failure)

Error Log

AssertionError: year: {__value: 2020} not in __onedata: {fileName: "file_with_xattrs", jsonMetadataExists: false, rdfMetadataExists: false, spaceId: "a7d7bd2d9bcc22932ae3b8f373f8a1e0cha6a8", xattrs: {year: {__value: "2020"}}, xattrsMetadataExists: true}
fixturefunc = <function assert_data_discovery_files at 0x7f6aa3481300>
request = <FixtureRequest for <Function test_public_harvester_site_is_updated_when_file_metadata_is_updated_in_space_of_original_harvester[1oz_1op_elasticsearch]>>
kwargs = {'browser_id': 'browser_not_signed_in', 'config': 'dir1_1:\n   jsonMetadataExists: false\n   rdfMetadataExists: false\..._harvester_site_is_updated_when_file_metadata_is_updated_in_space_of_original_harvester[1oz_1op_elasticsearch]>>}, ...}

    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/gui/meta_steps/onezone/data_discovery.py:39: in assert_data_discovery_files
    assert_files(selenium, browser_id, data_discovery, config, spaces)
tests/gui/meta_steps/onezone/data_discovery.py:50: in assert_files
    _assert_data_discovery_files(expected_data[file],
tests/gui/meta_steps/onezone/data_discovery.py:89: in _assert_data_discovery_files
    _assert_expected_xattr(sub_item, actual)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

sub_item = ('year', 2020)
actual = '__onedata: {fileName: "file_with_xattrs", jsonMetadataExists: false, rdfMetadataExists: false, spaceId: "a7d7bd2d9bcc22932ae3b8f373f8a1e0cha6a8", xattrs: {year: {__value: "2020"}}, xattrsMetadataExists: true}'

    def _assert_expected_xattr(sub_item, actual):
        regex = f'{sub_item[0]}: {{__value: {sub_item[1]}}}'
>       assert regex in actual, f'{regex} not in {actual}'
E       AssertionError: year: {__value: 2020} not in __onedata: {fileName: "file_with_xattrs", jsonMetadataExists: false, rdfMetadataExists: false, spaceId: "a7d7bd2d9bcc22932ae3b8f373f8a1e0cha6a8", xattrs: {year: {__value: "2020"}}, xattrsMetadataExists: true}

tests/gui/meta_steps/onezone/data_discovery.py:102: AssertionError