Uploaded image for project: 'OpenShift Service Mesh'
  1. OpenShift Service Mesh
  2. OSSM-3818

Conditionally skip tests related to Gateway API when Gateway API is not enabled

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: Normal Normal
    • None
    • None
    • Kiali
    • False
    • None
    • False
    • Kiali Sprint #63

      The current situation is that there are, for example in the Cypress suite, 2 serial runs, one with tests without the @crd-validation tag, and then other runs right after, where are only tests with the tag. It would be nice to first check if Gateway API is present, and if it is not, then skip the second half of the tests. This may (and possibly will) also apply to the other Kiali suits as well, so an investigation is needed.

       

      how to enable k8s gateway api

      oc get crd gateways.gateway.networking.k8s.io || { oc kustomize "github.com/kubernetes-sigs/gateway-api/config/crd?ref=v0.5.1" | oc apply -f -; } 

      do we have command just to verify if its enabled or diabled?

       

      we also need to take a look into cucumber processor - what are the hooks and which we can utilize i.e. if we just want to trigger gateway API test

              rh-ee-mnesuta Matej Nesuta
              rh-ee-mnesuta Matej Nesuta
              Pavel Marek
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: