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

Push an upstream way to execute integration Test against installed control plane with Sail Operator

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: Critical Critical
    • OSSM 3.0.1
    • None
    • Sail Operator
    • None
    • False
    • Hide

      None

      Show
      None
    • False

      We currently have diverging implementations of how we execute Istio integration tests against OpenShift on Jenkins vs. OpenShift CI. We should move these into a common code base so that executing the integration tests against an OCP cluster becomes a matter of calling e.g. a bash script. Ideally, that common code base also contains the list of executed/skipped tests, so we don't have to manage them in both CI systems separately when we make progress on supporting more integration tests on OCP.

      Acceptance Criteria:

      • Running integration tests from either CI system becomes a matter of checking out the correct repo and running a simple command
      • Determining which tests are run vs which tests are skipped is not done in CI, but that information is stored alongside the test execution scripts
      • Push the change into the upstream framework to improve the way that the test can be executed

      To achieve this we agree to try to push upstream a change that includes a way to execute the test against the installed control plane by using the Istio resource from Sail Operator. This is part of the meeting agreements:

      • Create a sort of transformer script that take all the config that currently is in the upstream test and sets it in a folder of the sail repo.
        This is probably the best solution
      • We would need code that converts IstioOperator->Istio/IstioCNI resources
      • We should inject somewhere around pkg/test/framework/components/istio/istio.go#L165C28-L165C31
      • Instead of running `newKube()`, we could e.g. output the Istio config to a file and run a custom command when a specific env var is set
        If we keep the changeset small, we can get it merged upstream

      Update:

      From the last meeting, we continue with the idea of pushing upstream improvements to allow running the integration test and allow some flexibility to the framework:

       

      Upstream Issue: https://github.com/istio/istio/issues/53990

       

              rh-ee-ctartici Cansin Tartici
              dgrimm@redhat.com Daniel Grimm
              Praneeth Bajjuri
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: