Uploaded image for project: 'Red Hat Developer Hub Bugs'
  1. Red Hat Developer Hub Bugs
  2. RHDHBUGS-1141

Adapt Test Keycloak plugin metrics for Kubernetes

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Normal Normal
    • None
    • None
    • Quality, Test framework
    • RHDH Plugins 3279

      Description of problem:

      The test uses only Route (OpenShift), but to successfully run on Kubernetes cluster, we need to have the option of Ingress.

      We can distinguish between the cluster type by `process.env.IS_OPENSHIFT` (is false for Kubernetes cluster).

      Affected test: https://github.com/redhat-developer/rhdh/blob/main/e2e-tests/playwright/e2e/plugins/keycloak/catalog-users.spec.ts#L59C16-L59C44 

      Prerequisites (if any, like setup, operators/versions):

       

      Steps to Reproduce

      1. Run the e2e test suite on K8s cluster.

      The tests can be triggered on a PR by commenting `/test ?`, for example:

      • /test e2e-tests-gke-helm-nightly
      • /test e2e-tests-aks-helm-nightly

      Actual results:

      Test is failing with:

      HttpError: HTTP request failed
          at Request._callback (/tmp/rhdh/e2e-tests/node_modules/@kubernetes/client-node/dist/gen/api/customObjectsApi.js:268:36)
          at Request.self.callback (/tmp/rhdh/e2e-tests/node_modules/request/request.js:185:22)
          at Request.<anonymous> (/tmp/rhdh/e2e-tests/node_modules/request/request.js:1154:10)
          at IncomingMessage.<anonymous> (/tmp/rhdh/e2e-tests/node_modules/request/request.js:1076:12)

      Expected results:

      Tests should pass

      Reproducibility (Always/Intermittent/Only Once):

      Always

      Build Details:

      Additional info (Such as Logs, Screenshots, etc):

              oandriie Aleksander Andriienko
              zdrapela@redhat.com Zbynek Drapela
              RHIDP - Plugins
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: