From fb76e6f25667ae8cee036cd39bf3c66e352427d8 Mon Sep 17 00:00:00 2001 From: Adrian Riobo Date: Tue, 12 Nov 2024 12:46:57 +0100 Subject: [PATCH] chore: added base template for windows desktop integration service Signed-off-by: Adrian Riobo --- .tekton/integrationtestscenarios/windows.yaml | 83 +++++++++++++++++++ 1 file changed, 83 insertions(+) create mode 100644 .tekton/integrationtestscenarios/windows.yaml diff --git a/.tekton/integrationtestscenarios/windows.yaml b/.tekton/integrationtestscenarios/windows.yaml new file mode 100644 index 0000000..22a0e60 --- /dev/null +++ b/.tekton/integrationtestscenarios/windows.yaml @@ -0,0 +1,83 @@ +--- +apiVersion: tekton.dev/v1 +kind: Pipeline +metadata: + name: e2e-windows +spec: + description: | + An integration test which provisions a windows desktop machine to run e2e. + + params: + - name: SNAPSHOT + description: Snapshot of the application + default: '{"components": [{"name":"test-app", "containerImage": "quay.io/example/repo:latest"}]}' + type: string + - name: secret-az-credentials + description: | + ocp secret holding the azure credentials. Secret should be accessible to this task. + + To be a valid secret it should contains the following fields: + * tenant_id + * subscription_id + * client_id + * client_secret + * storage_account + * storage_key + * blob + default: az-crcqe-bot + type: string + + tasks: + - name: init + taskSpec: + description: Task to create / manage data used across the pipeline + results: + - name: correlation + steps: + - name: preparer + image: registry.access.redhat.com/ubi9/ubi-minimal + script: | + #!/bin/sh + echo -n $RANDOM$RANDOM | tee $(results.correlation.path) + - name: provision-windows + runAfter: + - init + taskRef: + resolver: git + params: + - name: url + value: https://github.com/adrianriobo/mapt + - name: revision + value: fix-329 + - name: pathInRepo + value: tkn/infra-azure-windows-desktop.yaml + params: + - name: secret-az-credentials + value: az-crcqe-bot + - name: id + value: $(tasks.init.results.correlation) + - name: operation + value: create + - name: tags + value: 'origin=konflux,owner=$(context.pipelineRun.name)' + - name: decommission-windows + runAfter: + - provision-windows + taskRef: + resolver: git + params: + - name: url + value: https://github.com/adrianriobo/mapt + - name: revision + value: fix-329 + - name: pathInRepo + value: tkn/infra-azure-windows-desktop.yaml + params: + - name: secret-az-credentials + value: az-crcqe-bot + - name: id + value: $(tasks.init.results.correlation) + - name: operation + value: destroy + - name: host-access-secret + value: $(tasks.provision-windows.results.host-access-secret) \ No newline at end of file