-
Notifications
You must be signed in to change notification settings - Fork 41
263 lines (256 loc) · 8.43 KB
/
sub_test_choice.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
# This workflow is a reusable one called by other workflows
name: (template) CLI/UI template
on:
workflow_call:
# Variables to set when calling this reusable workflow
inputs:
backup_restore_version:
required: true
type: string
boot_type:
required: true
type: string
ca_type:
required: true
type: string
cert-manager_version:
required: true
type: string
cluster_name:
required: true
type: string
cluster_number:
required: true
type: string
cluster_namespace:
required: true
type: string
cluster_type:
required: true
type: string
cypress_tags:
required: true
type: string
destroy_runner:
required: true
type: boolean
elemental_ui_version:
required: true
type: string
force_downgrade:
required: true
type: boolean
full_backup_restore:
required: true
type: boolean
k8s_downstream_version:
required: true
type: string
k8s_upstream_version:
required: true
type: string
node_number:
required: true
type: string
operator_install_type:
required: true
type: string
operator_repo:
required: true
type: string
operator_upgrade:
required: true
type: string
os_to_test:
required: true
type: string
os_version_install:
required: true
type: string
os_version_target:
required: true
type: string
proxy:
required: true
type: string
public_domain:
required: true
type: string
public_fqdn:
required: true
type: string
qase_project_code:
required: true
type: string
qase_run_id:
required: true
type: string
rancher_git_chart:
required: true
type: string
rancher_upgrade:
required: true
type: string
rancher_version:
required: true
type: string
reset:
required: true
type: boolean
runner_label:
required: true
type: string
selinux:
required: true
type: boolean
sequential:
required: true
type: boolean
snap_type:
required: true
type: string
test_type:
required: true
type: string
ui_account:
required: true
type: string
upgrade_from_version:
required: true
type: string
upgrade_image:
required: true
type: string
upgrade_os_channel:
required: true
type: string
upgrade_type:
required: true
type: string
# Job outputs to export for caller workflow
outputs:
steps_status:
description: Status of the executed test jobs
value: ${{ join(jobs.*.outputs.steps_status, ' ') }}
# Secrets to set when calling this reusable workflow
secrets:
credentials:
qase_api_token:
jobs:
airgap:
if: ${{ inputs.test_type == 'airgap' }}
uses: ./.github/workflows/sub_airgap.yaml
secrets:
credentials: ${{ secrets.credentials }}
qase_api_token: ${{ secrets.qase_api_token }}
with:
cert-manager_version: ${{ inputs.cert-manager_version }}
cluster_name: ${{ inputs.cluster_name }}
cluster_namespace: ${{ inputs.cluster_namespace }}
k8s_downstream_version: ${{ inputs.k8s_downstream_version }}
operator_repo: ${{ inputs.operator_repo }}
os_to_test: ${{ inputs.os_to_test }}
qase_project_code: ${{ inputs.qase_project_code }}
qase_run_id: ${{ inputs.qase_run_id }}
rancher_version: ${{ inputs.rancher_version }}
runner_label: ${{ inputs.runner_label }}
snap_type: ${{ inputs.snap_type }}
test_type: ${{ inputs.test_type }}
k8s_upstream_version: ${{ inputs.k8s_upstream_version }}
cli:
if: ${{ inputs.test_type == 'cli' }}
uses: ./.github/workflows/sub_cli.yaml
secrets:
qase_api_token: ${{ secrets.qase_api_token }}
with:
backup_restore_version: ${{ inputs.backup_restore_version }}
boot_type: ${{ inputs.boot_type }}
ca_type: ${{ inputs.ca_type }}
cert-manager_version: ${{ inputs.cert-manager_version }}
cluster_name: ${{ inputs.cluster_name }}
cluster_namespace: ${{ inputs.cluster_namespace }}
cluster_type: ${{ inputs.cluster_type }}
destroy_runner: ${{ inputs.destroy_runner }}
force_downgrade: ${{ inputs.force_downgrade }}
full_backup_restore: ${{ inputs.full_backup_restore }}
k8s_downstream_version: ${{ inputs.k8s_downstream_version }}
node_number: ${{ inputs.node_number }}
operator_install_type: ${{ inputs.operator_install_type }}
operator_repo: ${{ inputs.operator_repo }}
operator_upgrade: ${{ inputs.operator_upgrade }}
os_to_test: ${{ inputs.os_to_test }}
public_domain: ${{ inputs.public_domain }}
public_fqdn: ${{ inputs.public_fqdn }}
qase_project_code: ${{ inputs.qase_project_code }}
qase_run_id: ${{ inputs.qase_run_id }}
rancher_upgrade: ${{ inputs.rancher_upgrade }}
rancher_version: ${{ inputs.rancher_version }}
reset: ${{ inputs.reset }}
runner_label: ${{ inputs.runner_label }}
selinux: ${{ inputs.selinux }}
sequential: ${{ inputs.sequential }}
snap_type: ${{ inputs.snap_type }}
test_type: ${{ inputs.test_type }}
upgrade_image: ${{ inputs.upgrade_image }}
upgrade_os_channel: ${{ inputs.upgrade_os_channel }}
upgrade_type: ${{ inputs.upgrade_type }}
k8s_upstream_version: ${{ inputs.k8s_upstream_version }}
multi:
if: ${{ inputs.test_type == 'multi' }}
uses: ./.github/workflows/sub_multi.yaml
secrets:
qase_api_token: ${{ secrets.qase_api_token }}
with:
boot_type: ${{ inputs.boot_type }}
ca_type: ${{ inputs.ca_type }}
cert-manager_version: ${{ inputs.cert-manager_version }}
cluster_name: ${{ inputs.cluster_name }}
cluster_namespace: ${{ inputs.cluster_namespace }}
cluster_number: ${{ inputs.cluster_number }}
cluster_type: ${{ inputs.cluster_type }}
k8s_downstream_version: ${{ inputs.k8s_downstream_version }}
operator_install_type: ${{ inputs.operator_install_type }}
operator_repo: ${{ inputs.operator_repo }}
os_to_test: ${{ inputs.os_to_test }}
public_domain: ${{ inputs.public_domain }}
public_fqdn: ${{ inputs.public_fqdn }}
qase_project_code: ${{ inputs.qase_project_code }}
qase_run_id: ${{ inputs.qase_run_id }}
rancher_version: ${{ inputs.rancher_version }}
runner_label: ${{ inputs.runner_label }}
snap_type: ${{ inputs.snap_type }}
test_type: ${{ inputs.test_type }}
k8s_upstream_version: ${{ inputs.k8s_upstream_version }}
ui:
if: ${{ inputs.test_type == 'ui' }}
uses: ./.github/workflows/sub_ui.yaml
secrets:
qase_api_token: ${{ secrets.qase_api_token }}
with:
boot_type: ${{ inputs.boot_type }}
ca_type: ${{ inputs.ca_type }}
cert-manager_version: ${{ inputs.cert-manager_version }}
cluster_name: ${{ inputs.cluster_name }}
cluster_namespace: ${{ inputs.cluster_namespace }}
cluster_type: ${{ inputs.cluster_type }}
cypress_tags: ${{ inputs.cypress_tags }}
elemental_ui_version: ${{ inputs.elemental_ui_version }}
k8s_downstream_version: ${{ inputs.k8s_downstream_version }}
operator_install_type: ${{ inputs.operator_install_type }}
operator_repo: ${{ inputs.operator_repo }}
os_to_test: ${{ inputs.os_to_test }}
os_version_install: ${{ inputs.os_version_install }}
os_version_target: ${{ inputs.os_version_target }}
proxy: ${{ inputs.proxy }}
public_domain: ${{ inputs.public_domain }}
public_fqdn: ${{ inputs.public_fqdn }}
qase_project_code: ${{ inputs.qase_project_code }}
qase_run_id: ${{ inputs.qase_run_id }}
rancher_git_chart: ${{ inputs.rancher_git_chart }}
rancher_version: ${{ inputs.rancher_version }}
runner_label: ${{ inputs.runner_label }}
ui_account: ${{ inputs.ui_account }}
upgrade_from_version: ${{ inputs.upgrade_from_version }}
upgrade_image: ${{ inputs.upgrade_image }}
upgrade_os_channel: ${{ inputs.upgrade_os_channel }}
k8s_upstream_version: ${{ inputs.k8s_upstream_version }}