File tree 1 file changed +83
-0
lines changed
.tekton/integrationtestscenarios
1 file changed +83
-0
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ apiVersion : tekton.dev/v1
3
+ kind : Pipeline
4
+ metadata :
5
+ name : e2e-windows
6
+ spec :
7
+ description : |
8
+ An integration test which provisions a windows desktop machine to run e2e.
9
+
10
+ params :
11
+ - name : SNAPSHOT
12
+ description : Snapshot of the application
13
+ default : ' {"components": [{"name":"test-app", "containerImage": "quay.io/example/repo:latest"}]}'
14
+ type : string
15
+ - name : secret-az-credentials
16
+ description : |
17
+ ocp secret holding the azure credentials. Secret should be accessible to this task.
18
+
19
+ To be a valid secret it should contains the following fields:
20
+ * tenant_id
21
+ * subscription_id
22
+ * client_id
23
+ * client_secret
24
+ * storage_account
25
+ * storage_key
26
+ * blob
27
+ default : az-crcqe-bot
28
+ type : string
29
+
30
+ tasks :
31
+ - name : init
32
+ taskSpec :
33
+ description : Task to create / manage data used across the pipeline
34
+ results :
35
+ - name : correlation
36
+ steps :
37
+ - name : preparer
38
+ image : registry.access.redhat.com/ubi9/ubi-minimal
39
+ script : |
40
+ #!/bin/sh
41
+ echo -n $RANDOM$RANDOM | tee $(results.correlation.path)
42
+ - name : provision-windows
43
+ runAfter :
44
+ - init
45
+ taskRef :
46
+ resolver : git
47
+ params :
48
+ - name : url
49
+ value : https://github.com/adrianriobo/mapt
50
+ - name : revision
51
+ value : fix-329
52
+ - name : pathInRepo
53
+ value : tkn/infra-azure-windows-desktop.yaml
54
+ params :
55
+ - name : secret-az-credentials
56
+ value : az-crcqe-bot
57
+ - name : id
58
+ value : $(tasks.init.results.correlation)
59
+ - name : operation
60
+ value : create
61
+ - name : tags
62
+ value : ' origin=konflux,owner=$(context.pipelineRun.name)'
63
+ - name : decommission-windows
64
+ runAfter :
65
+ - provision-windows
66
+ taskRef :
67
+ resolver : git
68
+ params :
69
+ - name : url
70
+ value : https://github.com/adrianriobo/mapt
71
+ - name : revision
72
+ value : fix-329
73
+ - name : pathInRepo
74
+ value : tkn/infra-azure-windows-desktop.yaml
75
+ params :
76
+ - name : secret-az-credentials
77
+ value : az-crcqe-bot
78
+ - name : id
79
+ value : $(tasks.init.results.correlation)
80
+ - name : operation
81
+ value : destroy
82
+ - name : host-access-secret
83
+ value : $(tasks.provision-windows.results.host-access-secret)
You can’t perform that action at this time.
0 commit comments