Skip to content
Snippets Groups Projects
  1. Jun 20, 2024
    • Emanuele Aina's avatar
    • Emanuele Aina's avatar
      Fix the integration test · c85699a1
      Emanuele Aina authored
      Pin the selenium version installed with pip since the integration tests
      are currently failing due to a change introduced in selenium 4.10.0
      (see https://github.com/SeleniumHQ/selenium/commit/9f5801c82fb3be3d585)
      which is being pulled via pip (for some reason the debian package is
      being ignored):
      
          ==================================== ERRORS ====================================
          _____________________ ERROR at setup of test_native_login ______________________
          request = <SubRequest 'driver' for <Function test_native_login>>
          driver_class = <class 'selenium.webdriver.remote.webdriver.WebDriver'>
          driver_kwargs = {'command_executor': 'http://docker:4444/wd/hub', 'desired_capabilities': {'browserName': 'firefox', 'moz:firefoxOptions': {}}}
              @pytest.fixture
              def driver(request, driver_class, driver_kwargs):
                  """Returns a WebDriver instance based on options and capabilities"""
      
                  retries = int(request.config.getini("max_driver_init_attempts"))
          >       for retry in Retrying(
                      stop=stop_after_attempt(retries), wait=wait_exponential(), reraise=True
                  ):
          /usr/local/lib/python3.9/dist-packages/pytest_selenium/pytest_selenium.py:201:
          _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
          /usr/local/lib/python3.9/dist-packages/tenacity/__init__.py:394: in __iter__
              do = self.iter(retry_state=retry_state)
          /usr/local/lib/python3.9/dist-packages/tenacity/__init__.py:372: in iter
              raise retry_exc.reraise()
          /usr/local/lib/python3.9/dist-packages/tenacity/__init__.py:189: in reraise
              raise self.last_attempt.result()
          /usr/lib/python3.9/concurrent/futures/_base.py:433: in result
              return self.__get_result()
          /usr/lib/python3.9/concurrent/futures/_base.py:389: in __get_result
              raise self._exception
          _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
          request = <SubRequest 'driver' for <Function test_native_login>>
          driver_class = <class 'selenium.webdriver.remote.webdriver.WebDriver'>
          driver_kwargs = {'command_executor': 'http://docker:4444/wd/hub
      
      ', 'desired_capabilities': {'browserName': 'firefox', 'moz:firefoxOptions': {}}}
              @pytest.fixture
              def driver(request, driver_class, driver_kwargs):
                  """Returns a WebDriver instance based on options and capabilities"""
      
                  retries = int(request.config.getini("max_driver_init_attempts"))
                  for retry in Retrying(
                      stop=stop_after_attempt(retries), wait=wait_exponential(), reraise=True
                  ):
                      with retry:
                          LOGGER.info(
                              f"Driver init, attempt {retry.retry_state.attempt_number}/{retries}"
                          )
          >               driver = driver_class(**driver_kwargs)
          E               TypeError: __init__() got an unexpected keyword argument 'desired_capabilities'
          /usr/local/lib/python3.9/dist-packages/pytest_selenium/pytest_selenium.py:208: TypeError
      
      Signed-off-by: Emanuele Aina's avatarEmanuele Aina <emanuele.aina@collabora.com>
      c85699a1
    • Emanuele Aina's avatar
      Fix building the testsuite by updating Go > 1.20 · b32f56d2
      Emanuele Aina authored
      
      The testsuite build currently fails with:
      
          $ ginkgo -r --randomize-all --randomize-suites --fail-on-pending --cover --trace --race --progress -v
          Failed to compile mediator:
          # github.com/onsi/gomega/internal
          /go/pkg/mod/github.com/onsi/gomega@v1.33.1/internal/async_assertion.go:556:19: undefined: context.Cause
          note: module requires Go 1.20
          # github.com/onsi/ginkgo/v2/internal
          /go/pkg/mod/github.com/onsi/ginkgo/v2@v2.19.0/internal/spec_context.go:20:17: undefined: context.CancelCauseFunc
          /go/pkg/mod/github.com/onsi/ginkgo/v2@v2.19.0/internal/spec_context.go:33:25: undefined: context.WithCancelCause
          note: module requires Go 1.20
      
      Update to the latest `golang` images to fix the issue.
      
      Signed-off-by: Emanuele Aina's avatarEmanuele Aina <emanuele.aina@collabora.com>
      b32f56d2
  2. Apr 28, 2023
  3. Apr 21, 2023
  4. Apr 20, 2023
  5. Apr 19, 2023
  6. Mar 24, 2023
  7. Mar 20, 2023
  8. Feb 01, 2023
  9. Dec 16, 2022
  10. Dec 15, 2022
Loading