-
Notifications
You must be signed in to change notification settings - Fork 3
/
.gitlab-ci.yml
262 lines (236 loc) · 8.1 KB
/
.gitlab-ci.yml
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
## Define the stages & order of execution
stages:
- CLUSTER-SETUP
- DIRECTOR-INSTALL
- CLUSTER-CONNECT
- OPENEBS-INSTALL
- DIRECTOR-FUNCTIONAL
# - METRICS-CHECK
# - TEAMING-CHECK
# - TOPOLOGY-CHECK
- DIRECTOR-GUI
- CLUSTER-TEAR-DOWN ## This stage is fixed and should not be changed
## Setup kubernetes cluster using Konvoy
cluster-create:
image: harshshekhar15/gitlab-job:v3
stage: CLUSTER-SETUP
script:
- chmod 755 ./stages/cluster-setup/check-cluster-state/cluster-setup.sh
- ./stages/cluster-setup/check-cluster-state/cluster-setup.sh
## Deploy Director On-Prem
TCID-DIR-INSTALL-ON-LOCAL-HP:
image: harshshekhar15/gitlab-job:v3
stage: DIRECTOR-INSTALL
dependencies:
- cluster-create
script:
- chmod 755 ./stages/director-install/dop-deploy.sh
- ./stages/director-install/dop-deploy.sh
## Create user's apikey
create-apikey-check:
image: harshshekhar15/gitlab-job:v3
stage: CLUSTER-CONNECT
dependencies:
- TCID-DIR-INSTALL-ON-LOCAL-HP
script:
- chmod 755 ./stages/functional-testing-with-rest/cluster-connect-checks/create-apikey-check.sh
- ./stages/functional-testing-with-rest/cluster-connect-checks/create-apikey-check.sh
## Cluster connect check
trrc01-cluster-connect-check:
image: harshshekhar15/gitlab-job:v3
stage: CLUSTER-CONNECT
dependencies:
- TCID-DIR-INSTALL-ON-LOCAL-HP
script:
- chmod 755 ./stages/functional-testing-with-rest/cluster-connect-checks/cluster-connect-check.sh
- ./stages/functional-testing-with-rest/cluster-connect-checks/cluster-connect-check.sh
## Client component check
client-components-check:
image: harshshekhar15/gitlab-job:v3
stage: CLUSTER-CONNECT
dependencies:
- TCID-DIR-INSTALL-ON-LOCAL-HP
script:
- chmod 755 ./stages/functional-testing-with-rest/cluster-connect-checks/client-components-check.sh
- ./stages/functional-testing-with-rest/cluster-connect-checks/client-components-check.sh
## Self cluster connect check
director-self-cluster-connect-check:
image: harshshekhar15/gitlab-job:v3
stage: CLUSTER-CONNECT
dependencies:
- TCID-DIR-INSTALL-ON-LOCAL-HP
script:
- chmod 755 ./stages/functional-testing-with-rest/cluster-connect-checks/self-connect-cluster-check.sh
- ./stages/functional-testing-with-rest/cluster-connect-checks/self-connect-cluster-check.sh
## OpenEBS install
tcid-iuoi02-openebs-install:
image: harshshekhar15/gitlab-job:v2
stage: OPENEBS-INSTALL
dependencies:
- cluster-create
script:
- chmod 755 ./stages/openebs-install/tcid-iuoi02-openebs-install.sh
- ./stages/openebs-install/tcid-iuoi02-openebs-install.sh
TCID-DIR-OP-CSTOR-POOL-RECOMMEND-CREATE-STRIPE:
image: harshshekhar15/gitlab-job:v2
stage: OPENEBS-INSTALL
dependencies:
- cluster-create
script:
- chmod 755 ./stages/openebs-install/TCID-DIR-OP-CSTOR-POOL-RECOMMEND-CREATE-STRIPE.sh
- ./stages/openebs-install/TCID-DIR-OP-CSTOR-POOL-RECOMMEND-CREATE-STRIPE.sh
# ## Director metrics check
# metrics-check:
# image: harshshekhar15/gitlab-job:v3
# stage: DIRECTOR-FUNCTIONAL
# dependencies:
# - client-components-check
# script:
# - chmod 755 ./stages/functional-testing-with-rest/metrics-check/metrics-check.sh
# - ./stages/functional-testing-with-rest/metrics-check/metrics-check.sh
## Teaming checks
triv01-teaming-invite-check:
image: harshshekhar15/gitlab-job:v3
stage: DIRECTOR-FUNCTIONAL
dependencies:
- client-components-check
script:
- chmod 755 ./stages/functional-testing-with-rest/teaming-check/teaming-invite-check.sh
- ./stages/functional-testing-with-rest/teaming-check/teaming-invite-check.sh
trrc02-teaming-change-role-check:
image: harshshekhar15/gitlab-job:v3
stage: DIRECTOR-FUNCTIONAL
dependencies:
- client-components-check
script:
- chmod 755 ./stages/functional-testing-with-rest/teaming-check/teaming-change-role-check.sh
- ./stages/functional-testing-with-rest/teaming-check/teaming-change-role-check.sh
trrc03-teaming-change-role-negative-check:
image: harshshekhar15/gitlab-job:v3
stage: DIRECTOR-FUNCTIONAL
dependencies:
- client-components-check
script:
- chmod 755 ./stages/functional-testing-with-rest/teaming-check/teaming-change-role-negative-check.sh
- ./stages/functional-testing-with-rest/teaming-check/teaming-change-role-negative-check.sh
## Topology check
topology-check:
image: harshshekhar15/gitlab-job:v3
stage: DIRECTOR-FUNCTIONAL
dependencies:
- client-components-check
script:
- chmod 755 ./stages/functional-testing-with-rest/topology-check/topology-check.sh
- ./stages/functional-testing-with-rest/topology-check/topology-check.sh
## Selenium Grid Spin up
selenium-grid-deploy:
image: harshshekhar15/gitlab-job:v5
stage: DIRECTOR-GUI
dependencies:
- cluster-create
script:
- chmod 755 ./stages/director-gui/create-grid.sh
- ./stages/director-gui/create-grid.sh
## Selenium tests
tcid-gaau01-gui-auth:
image: harshshekhar15/gitlab-job:v5
stage: DIRECTOR-GUI
dependencies:
- TCID-DIR-INSTALL-ON-LOCAL-HP
script:
- chmod 755 ./stages/director-gui/tcid-gaau01-gui-auth.sh
- ./stages/director-gui/tcid-gaau01-gui-auth.sh
tcid-gacc01-gui-cluster:
image: harshshekhar15/gitlab-job:v5
stage: DIRECTOR-GUI
dependencies:
- TCID-DIR-INSTALL-ON-LOCAL-HP
script:
- chmod 755 ./stages/director-gui/tcid-gacc01-gui-cluster.sh
- ./stages/director-gui/tcid-gacc01-gui-cluster.sh
tcid-gada01-gui-dashboard-home:
image: harshshekhar15/gitlab-job:v5
stage: DIRECTOR-GUI
dependencies:
- TCID-DIR-INSTALL-ON-LOCAL-HP
script:
- chmod 755 ./stages/director-gui/tcid-gada01-gui-dashboard-home.sh
- ./stages/director-gui/tcid-gada01-gui-dashboard-home.sh
tcid-gato01-gui-dashboard-topology:
image: harshshekhar15/gitlab-job:v5
stage: DIRECTOR-GUI
dependencies:
- TCID-DIR-INSTALL-ON-LOCAL-HP
script:
- chmod 755 ./stages/director-gui/tcid-gato01-gui-dashboard-topology.sh
- ./stages/director-gui/tcid-gato01-gui-dashboard-topology.sh
gui-dashboard:
image: harshshekhar15/gitlab-job:v5
stage: DIRECTOR-GUI
dependencies:
- TCID-DIR-INSTALL-ON-LOCAL-HP
script:
- chmod 755 ./stages/director-gui/gui-dashboard.sh
- ./stages/director-gui/gui-dashboard.sh
tcid-gaal01-gui-dashboard-alerts:
image: harshshekhar15/gitlab-job:v5
stage: DIRECTOR-GUI
dependencies:
- TCID-DIR-INSTALL-ON-LOCAL-HP
script:
- chmod 755 ./stages/director-gui/tcid-gaal01-gui-dashboard-alerts.sh
- ./stages/director-gui/tcid-gaal01-gui-dashboard-alerts.sh
tcid-galo01-gui-dashboard-logs:
image: harshshekhar15/gitlab-job:v5
stage: DIRECTOR-GUI
dependencies:
- TCID-DIR-INSTALL-ON-LOCAL-HP
script:
- chmod 755 ./stages/director-gui/tcid-galo01-gui-dashboard-logs.sh
- ./stages/director-gui/tcid-galo01-gui-dashboard-logs.sh
tcid-gada02-gui-dashboard-overview:
image: harshshekhar15/gitlab-job:v5
stage: DIRECTOR-GUI
dependencies:
- TCID-DIR-INSTALL-ON-LOCAL-HP
script:
- chmod 755 ./stages/director-gui/tcid-gada02-gui-dashboard-overview.sh
- ./stages/director-gui/tcid-gada02-gui-dashboard-overview.sh
## Selenium Grid Clean up
selenium-grid-cleanup:
image: harshshekhar15/gitlab-job:v5
stage: CLUSTER-TEAR-DOWN
dependencies:
- TCID-DIR-INSTALL-ON-LOCAL-HP
script:
- chmod 755 ./stages/cluster-tear-down/delete-grid.sh
- ./stages/cluster-tear-down/delete-grid.sh
## E2E metrics stage
e2e-metrics:
when: always
image: harshshekhar15/gitlab-job:v2
stage: CLUSTER-TEAR-DOWN
dependencies:
- cluster-create
script:
- chmod 755 ./stages/cluster-tear-down/e2e-metrics.sh
- ./stages/cluster-tear-down/e2e-metrics.sh
## Revert the cluster to previous snapshot
cluster-cleanup:
when: always
image: harshshekhar15/gitlab-job:v2
stage: CLUSTER-TEAR-DOWN
dependencies:
- cluster-create
script:
- chmod 755 ./stages/cluster-tear-down/cluster-cleanup.sh
- ./stages/cluster-tear-down/cluster-cleanup.sh
cluster2-cleanup:
when: always
image: harshshekhar15/gitlab-job:v2
stage: CLUSTER-TEAR-DOWN
dependencies:
- cluster-create
script:
- chmod 755 ./stages/cluster-tear-down/c2-cleanup.sh
- ./stages/cluster-tear-down/c2-cleanup.sh