GUI acceptance tests using environment deployed from packages.

Build: #2912 failed

Job: POSIX multiuser failed

Stages & jobs

  1. Qnthack - copy quarantine

  2. Acceptance Test

  3. Qnthack - rerun

    Final

spaceowneruser changes directory permission and user1 sees that it has changed[1oz 1op deployed]: Test case result

The below summarizes the result of the test " spaceowneruser changes directory permission and user1 sees that it has changed[1oz 1op deployed]" in build 2,912 of Onedata Products - gui acceptance pkg - POSIX multiuser.
Description
spaceowneruser changes directory permission and user1 sees that it has changed[1oz 1op deployed]
Test class
gui.scenarios.test_oneprovider_posix_multiuser
Method
test_spaceowneruser_changes_directory_permission_and_user1_sees_that_it_has_changed[1oz_1op_deployed]
Jira Issue
Duration
2 mins
Status
Failed (Existing Failure)

Error Log

selenium.common.exceptions.InvalidSessionIdException: Message: invalid session id
Stacktrace:
#0 0x55f7bfb3b13a <unknown>
#1 0x55f7bf82143d <unknown>
#2 0x55f7bf8628e3 <unknown>
#3 0x55f7bf895a04 <unknown>
#4 0x55f7bf88feb2 <unknown>
#5 0x55f7bf88f105 <unknown>
#6 0x55f7bf7ebc38 <unknown>
#7 0x55f7bfb05b3b <unknown>
#8 0x55f7bfb09ac1 <unknown>
#9 0x55f7bfaf2335 <unknown>
#10 0x55f7bfb0a642 <unknown>
#11 0x55f7bfad749f <unknown>
#12 0x55f7bf7ea6b6 <unknown>
#13 0x7f33a18f91ca <unknown>
#14 0x7f33a18f928b __libc_start_main
#15 0x55f7bf7b5e6a _start
fixturefunc = <function assert_posix_tab_in_panel at 0x7f091945b6a0>
request = <FixtureRequest for <Function test_spaceowneruser_changes_directory_permission_and_user1_sees_that_it_has_changed[1oz_1op_deployed]>>
kwargs = {'browser_id': 'browser1', 'modal_name': 'Directory details', 'modals': <class 'tests.gui.utils.common.modals.Modals'>..., 'space_owner_browser': <selenium.webdriver.chrome.webdriver.WebDriver (session="e502f235c9cf474dc258cf849706b4d3")>}}

    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/modals/details_modal.py:106: in assert_posix_tab_in_panel
    posix_hidden = getattr(modals(selenium[browser_id]),
tests/gui/utils/core/web_elements.py:59: in __get__
    elem = super(WebItem, self).__get__(instance, owner)
tests/gui/utils/core/web_elements.py:29: in __get__
    return find_web_elem(instance.web_elem, self.css_sel,
tests/gui/utils/generic.py:134: in find_web_elem
    _scroll_to_css_sel(web_elem_root, css_sel)
tests/gui/utils/generic.py:179: in _scroll_to_css_sel
    driver.execute_script(f"var el = (typeof $ === 'function' ? "
/usr/local/lib/python3.12/dist-packages/selenium/webdriver/remote/webdriver.py:414: in execute_script
    return self.execute(command, {"script": script, "args": converted_args})["value"]
/usr/local/lib/python3.12/dist-packages/selenium/webdriver/remote/webdriver.py:354: in execute
    self.error_handler.check_response(response)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <selenium.webdriver.remote.errorhandler.ErrorHandler object at 0x7f0918cb5490>
response = {'status': 404, 'value': '{"value":{"error":"invalid session id","message":"invalid session id","stacktrace":"#0 0x55f...nknown>\\n#13 0x7f33a18f91ca \\u003Cunknown>\\n#14 0x7f33a18f928b __libc_start_main\\n#15 0x55f7bf7b5e6a _start\\n"}}'}

    def check_response(self, response: Dict[str, Any]) -> None:
        """Checks that a JSON response from the WebDriver does not have an
        error.
    
        :Args:
         - response - The JSON response from the WebDriver server as a dictionary
           object.
    
        :Raises: If the response contains an error message.
        """
        status = response.get("status", None)
        if not status or status == ErrorCode.SUCCESS:
            return
        value = None
        message = response.get("message", "")
        screen: str = response.get("screen", "")
        stacktrace = None
        if isinstance(status, int):
            value_json = response.get("value", None)
            if value_json and isinstance(value_json, str):
                import json
    
                try:
                    value = json.loads(value_json)
                    if len(value) == 1:
                        value = value["value"]
                    status = value.get("error", None)
                    if not status:
                        status = value.get("status", ErrorCode.UNKNOWN_ERROR)
                        message = value.get("value") or value.get("message")
                        if not isinstance(message, str):
                            value = message
                            message = message.get("message")
                    else:
                        message = value.get("message", None)
                except ValueError:
                    pass
    
        exception_class: Type[WebDriverException]
        e = ErrorCode()
        error_codes = [item for item in dir(e) if not item.startswith("__")]
        for error_code in error_codes:
            error_info = getattr(ErrorCode, error_code)
            if isinstance(error_info, list) and status in error_info:
                exception_class = getattr(ExceptionMapping, error_code, WebDriverException)
                break
        else:
            exception_class = WebDriverException
    
        if not value:
            value = response["value"]
        if isinstance(value, str):
            raise exception_class(value)
        if message == "" and "message" in value:
            message = value["message"]
    
        screen = None  # type: ignore[assignment]
        if "screen" in value:
            screen = value["screen"]
    
        stacktrace = None
        st_value = value.get("stackTrace") or value.get("stacktrace")
        if st_value:
            if isinstance(st_value, str):
                stacktrace = st_value.split("\n")
            else:
                stacktrace = []
                try:
                    for frame in st_value:
                        line = frame.get("lineNumber", "")
                        file = frame.get("fileName", "<anonymous>")
                        if line:
                            file = f"{file}:{line}"
                        meth = frame.get("methodName", "<anonymous>")
                        if "className" in frame:
                            meth = f"{frame['className']}.{meth}"
                        msg = "    at %s (%s)"
                        msg = msg % (meth, file)
                        stacktrace.append(msg)
                except TypeError:
                    pass
        if exception_class == UnexpectedAlertPresentException:
            alert_text = None
            if "data" in value:
                alert_text = value["data"].get("text")
            elif "alert" in value:
                alert_text = value["alert"].get("text")
            raise exception_class(message, screen, stacktrace, alert_text)  # type: ignore[call-arg]  # mypy is not smart enough here
>       raise exception_class(message, screen, stacktrace)
E       selenium.common.exceptions.InvalidSessionIdException: Message: invalid session id
E       Stacktrace:
E       #0 0x55f7bfb3b13a <unknown>
E       #1 0x55f7bf82143d <unknown>
E       #2 0x55f7bf8628e3 <unknown>
E       #3 0x55f7bf895a04 <unknown>
E       #4 0x55f7bf88feb2 <unknown>
E       #5 0x55f7bf88f105 <unknown>
E       #6 0x55f7bf7ebc38 <unknown>
E       #7 0x55f7bfb05b3b <unknown>
E       #8 0x55f7bfb09ac1 <unknown>
E       #9 0x55f7bfaf2335 <unknown>
E       #10 0x55f7bfb0a642 <unknown>
E       #11 0x55f7bfad749f <unknown>
E       #12 0x55f7bf7ea6b6 <unknown>
E       #13 0x7f33a18f91ca <unknown>
E       #14 0x7f33a18f928b __libc_start_main
E       #15 0x55f7bf7b5e6a _start

/usr/local/lib/python3.12/dist-packages/selenium/webdriver/remote/errorhandler.py:229: InvalidSessionIdException