Uploaded image for project: 'Red Hat OpenShift Dev Spaces (formerly CodeReady Workspaces) '
  1. Red Hat OpenShift Dev Spaces (formerly CodeReady Workspaces)
  2. CRW-1778

Run CRW E2E tests in parallel against the same CRW instance in testing pipeline

XMLWordPrintable

    • False
    • False
    • Undefined

      Run CRW devfile and plugin E2E tests in parallel against the same CRW instance in testing pipeline, in order to shorted overall test execution time, e.g., in crw-crwctl test pipeline:

       stage("Run E2E tests") {
          parallel {
              stage("plugins") {
                  steps {
                      script {
                          basicCrwPipelineHelper.runAllPluginTests(
                              productNamespace: namespace,
                              ocpVersion: ocpVersion,
                              ocpInfra: ocpInfra,
                              productUrl: productUrl,
                              testRepoAddress: testRepoAddress,
                              testRepoBranch: testRepoBranch,
                              testRootDir: testRootDir,
                              e2eTestImage: e2eTestImage,
                              e2eTestParameters: "-e TS_TEST_OPENSHIFT_PLUGIN_USERNAME=$openshiftDto.clusterAdminName  -e TS_TEST_OPENSHIFT_PLUGIN_PASSWORD=$openshiftDto.clusterAdminPassword  -e TS_SELENIUM_VALUE_OPENSHIFT_OAUTH=true  -e TS_OCP_LOGIN_PAGE_PROVIDER_TITLE=htpasswd  -e TS_SELENIUM_OCP_USERNAME=$openshiftDto.clusterAdminName -e TS_SELENIUM_OCP_PASSWORD=$openshiftDto.clusterAdminPassword"
                          )
                      }
                  }
              }
      
              stage("devfiles") {
                  steps {
                      script {
                          basicCrwPipelineHelper.runAllDevfileTests(
                              productNamespace: namespace,
                              ocpVersion: ocpVersion,
                              ocpInfra: ocpInfra,
                              productUrl: productUrl,
                              testRepoAddress: testRepoAddress,
                              testRepoBranch: testRepoBranch,
                              testRootDir: testRootDir,
                              e2eTestImage: e2eTestImage,
                              e2eTestParameters: "-e TS_SELENIUM_VALUE_OPENSHIFT_OAUTH=true  -e TS_OCP_LOGIN_PAGE_PROVIDER_TITLE=htpasswd  -e TS_SELENIUM_OCP_USERNAME=$openshiftDto.clusterAdminName -e TS_SELENIUM_OCP_PASSWORD=$openshiftDto.clusterAdminPassword"
                          )
                      }
                  }
              }
          }
      }

              dnochevn Dmytro Nochevnov
              dnochevn Dmytro Nochevnov
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: