GUI acceptance tests using environment deployed from packages.

Build: #2938 failed

Job: Onezone harvesters index metadata failed

Stages & jobs

  1. Qnthack - copy quarantine

  2. Acceptance Test

  3. Qnthack - rerun

    Final

user sees what is rejected in data discovery page after changing json metadata value and creating index that includes include retry on rejection toggles[1oz 1op elasticsearch]: Test case result

The below summarizes the result of the test " user sees what is rejected in data discovery page after changing json metadata value and creating index that includes include retry on rejection toggles[1oz 1op elasticsearch]" in build 2,938 of Onedata Products - gui acceptance pkg - Onezone harvesters index metadata.
Description
user sees what is rejected in data discovery page after changing json metadata value and creating index that includes include retry on rejection toggles[1oz 1op elasticsearch]
Test class
gui.scenarios.test_onezone_harvesters_index_metadata
Method
test_user_sees_what_is_rejected_in_data_discovery_page_after_changing_json_metadata_value_and_creating_index_that_includes_include_retry_on_rejection_toggles[1oz_1op_elasticsearch]
Duration
3 mins
Status
Failed (New Failure)

Error Log

AssertionError: __rejected: ["id"] not in results list
selenium = {'browser': <tests.conftest.ChromeWithAllLogs (session="41e8ce1fa49e5b8271dafc9d27b19005")>, 'request': <SubRequest 's...nging_json_metadata_value_and_creating_index_that_includes_include_retry_on_rejection_toggles[1oz_1op_elasticsearch]>>}
browser_id = 'browser'
data_discovery = <class 'tests.gui.utils.onezone.data_discovery_page.DataDiscoveryPage'>
info = '["id"]', text = 'rejected'

    @wt(
        parsers.parse(
            "user of {browser_id} sees {text}: {info}"
            " in results list on data discovery page"
        )
    )
    @repeat_failed(timeout=WAIT_FRONTEND)
    def assert_info_on_data_discovery_page(
        selenium, browser_id, data_discovery, info, text
    ):
        driver = selenium[browser_id]
        key = set_key(text)
        try:
            results_list = data_discovery(driver).results_list
>           text_in_result_list(key, info, results_list)

tests/gui/steps/onezone/harvesters/indices.py:280: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

key = '__rejected', value = '["id"]'
results_list = <tests.gui.utils.core.web_objects.PageObjectsSequence object at 0x7f63b659c620>

    def text_in_result_list(key, value, results_list):
        results = results_list_to_list_with_dictionaries(results_list)
        for item in results:
            if value == item.get(key):
                break
        else:
>           raise AssertionError(f"{key}: {value} not in results list")
E           AssertionError: __rejected: ["id"] not in results list

tests/gui/steps/onezone/harvesters/indices.py:196: AssertionError

During handling of the above exception, another exception occurred:

fixturefunc = <function assert_info_on_data_discovery_page at 0x7f63b6dac4a0>
request = <FixtureRequest for <Function test_user_sees_what_is_rejected_in_data_discovery_page_after_changing_json_metadata_value_and_creating_index_that_includes_include_retry_on_rejection_toggles[1oz_1op_elasticsearch]>>
kwargs = {'browser_id': 'browser', 'data_discovery': <class 'tests.gui.utils.onezone.data_discovery_page.DataDiscoveryPage'>, '...json_metadata_value_and_creating_index_that_includes_include_retry_on_rejection_toggles[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/steps/onezone/harvesters/indices.py:288: in assert_info_on_data_discovery_page
    text_in_result_list(key, info, results_list)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

key = '__rejected', value = '["id"]'
results_list = <tests.gui.utils.core.web_objects.PageObjectsSequence object at 0x7f63b659f7a0>

    def text_in_result_list(key, value, results_list):
        results = results_list_to_list_with_dictionaries(results_list)
        for item in results:
            if value == item.get(key):
                break
        else:
>           raise AssertionError(f"{key}: {value} not in results list")
E           AssertionError: __rejected: ["id"] not in results list

tests/gui/steps/onezone/harvesters/indices.py:196: AssertionError