From 75e59984539f985406ea336a54fd09678b5f29ba Mon Sep 17 00:00:00 2001 From: Andre Ferreira Guimaraes Junior Date: Thu, 12 Dec 2024 14:56:28 -0300 Subject: [PATCH] [patch] MSO-416 - Cypress tests --- tekton/src/pipelines/fvt-optimizer.yml.j2 | 43 +++++++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/tekton/src/pipelines/fvt-optimizer.yml.j2 b/tekton/src/pipelines/fvt-optimizer.yml.j2 index 7bbe6679b1..b0b90db28d 100644 --- a/tekton/src/pipelines/fvt-optimizer.yml.j2 +++ b/tekton/src/pipelines/fvt-optimizer.yml.j2 @@ -555,6 +555,49 @@ spec: - name: configs workspace: shared-configs + # 14. Run "cypress/optimizer/e2e/ui/bvt/MOProjects/MOWorkspace.cy.js" + # ----------------------------------------------------------------------------- + - name: moworkspace + params: + - name: mas_instance_id + value: $(params.mas_instance_id) + - name: mas_workspace_id + value: $(params.mas_workspace_id) + + - name: fvt_image_registry + value: $(params.fvt_image_registry) + - name: fvt_image_namespace + value: fvt-optimizer + - name: fvt_image_name + value: fvt-ibm-mas-optimizer-cypress + - name: fvt_image_digest + value: $(params.fvt_digest_optimizer) + - name: fvt_test_suite + value: ui_mo_workspace + - name: fvt_config_file + value: configs/fvt-optimizer-cypress.config.js + - name: product_channel + value: $(params.mas_app_channel_optimizer) + - name: product_id + value: ibm-mas-optimizer + + taskRef: + kind: Task + name: mas-fvt-run-suite + # Only if we've set a digest of the Predict FVT to run + when: + - input: "$(params.fvt_digest_ctf)" + operator: notin + values: [""] + - input: "$(params.mas_app_channel_optimizer)" + operator: notin + values: ["8.4.x-dev", "8.5.x-dev", "9.0.x-dev"] + runAfter: + - moprojects + workspaces: + - name: configs + workspace: shared-configs + finally: # 1. Run CV # -----------------------------------------------------------------------------