blob: cffbe5873254a1d20715d403fc507c8178d3bb35 [file] [log] [blame]
Hanna Arhipova4759ae42021-01-11 12:48:14 +02001---
2
3- project:
4 name: test-scenarios
5 views:
6 - Test Backups
7 - Test Ceph
8 - Test MCP updates
9 jobs:
10 - backup-tests
11 - ceph-tests
12 - update-tests
13
14################### VIEWS #######################
15- view:
16 name: Test Backups
17 view-type: list
18 filter-executors: true
19 filter-queue: true
20 regex: 'backup-.*'
21 columns:
22 - status
23 - weather
24 - job
25 - last-success
26 - last-failure
27 - last-duration
28 - build-button
29
30- view:
31 name: Test Ceph
32 view-type: list
33 filter-executors: true
34 filter-queue: true
35 regex: 'ceph_.*'
36 columns:
37 - status
38 - weather
39 - job
40 - last-success
41 - last-failure
42 - last-duration
43 - build-button
44
45- view:
46 name: Test MCP updates
47 view-type: list
48 filter-executors: true
49 filter-queue: true
50 regex: '.*-update-.*'
51 columns:
52 - status
53 - weather
54 - job
55 - last-success
56 - last-failure
57 - last-duration
58 - build-button
59
60######################## JOB GROUP ####################
61- job-group:
62 name: 'backup-tests'
63 test_scenario:
64
Hanna Arhipova42b06232021-04-22 09:29:44 +030065 - backup-saltmaster:
Hanna Arhipova4759ae42021-01-11 12:48:14 +020066 run-test-opts: '-k TestBackupRestoreMaster'
67 deployment: heat-cicd-queens-dvr-sl
Hanna Arhipova42b06232021-04-22 09:29:44 +030068 display-name: Backup/Restore SaltMaster
Hanna Arhipova4759ae42021-01-11 12:48:14 +020069
Hanna Arhipova42b06232021-04-22 09:29:44 +030070 - backup-saltmaster-with-maas:
Hanna Arhipova4759ae42021-01-11 12:48:14 +020071 run-test-opts: '-k TestBackupRestoreMaster'
Hanna Arhipova42b06232021-04-22 09:29:44 +030072 deployment: bm-cicd-queens-ovs-maas
73 display-name: Backup/Restore SaltMaster (with MAAS)
Hanna Arhipova4759ae42021-01-11 12:48:14 +020074
75 - backup-cassandra-queens-contrail-sl:
76 run-test-opts: '-k TestBackupRestoreCassandra'
Hanna Arhipova885a2ed2021-03-05 20:00:52 +020077 deployment: heat-cicd-queens-contrail41-sl
Hanna Arhipovae92b66b2021-04-15 19:56:30 +030078 display-name: Backup/restore Cassandra
Hanna Arhipova4759ae42021-01-11 12:48:14 +020079
Hanna Arhipova42b06232021-04-22 09:29:44 +030080 - backup-galera-queens-sl:
81 run-test-opts: '-k TestBackupRestoreGalera'
82 deployment: heat-cicd-queens-dvr-sl
83 display-name: Backup/restore Galera
84
85 - backup-zookeeper-queens-sl:
86 run-test-opts: '-k TestBackupRestoreZooKeeper'
87 deployment: heat-cicd-queens-dvr-sl
88 display-name: Backup/restore Zookeeper
89
90
Hanna Arhipova4759ae42021-01-11 12:48:14 +020091 jobs:
92 - '{test_scenario}'
93
94- job-group:
95 name: 'ceph-tests'
96 test_scenario:
97 - ceph_osd-queens-dvr-sl:
Hanna Arhipovae92b66b2021-04-15 19:56:30 +030098 run-test-opts: '-k TestCephOsd'
99 deployment: heat-cicd-queens-dvr-sl
100 display-name: Add/Remove OSD node
101 - ceph_cmn-queens-dvr-sl:
102 run-test-opts: '-k TestCephMon'
103 deployment: heat-cicd-queens-dvr-sl
104 display-name: Add/Remove CMN node
105 - ceph_mgr-queens-dvr-sl:
106 run-test-opts: '-k TestCephMgr'
107 deployment: heat-cicd-queens-dvr-sl
108 display-name: Add/Remove MGR node
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200109 jobs:
110 - '{test_scenario}'
111
112- job-group:
113 name: 'update-tests'
114 test-opt: |-
115 --keep-duplicates --maxfail=1 \
116 tcp_tests/tests/system/test_mcp_update.py::TestUpdateMcpCluster::test_update_drivetrain \
117 tcp_tests/tests/system/test_mcp_update.py::TestOpenstackUpdate \
Hanna Arhipova885a2ed2021-03-05 20:00:52 +0200118 tcp_tests/tests/system/test_mcp_update.py::TestUpdateMcpCluster::test_update_galera \
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200119 tcp_tests/tests/system/test_mcp_update.py::TestUpdateMcpCluster::test_update_rabbit \
120 tcp_tests/tests/system/test_mcp_update.py::TestUpdateMcpCluster::test_update_stacklight \
121 tcp_tests/tests/system/test_mcp_update.py::TestUpdateMcpCluster::test_update_ceph \
122 \
Hanna Arhipovae47f38e2021-03-05 22:19:35 +0200123 tcp_tests/tests/system/test_cvp_pipelines.py::TestCvpPipelines::test_run_cvp_tempest \
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200124 tcp_tests/tests/system/test_cvp_pipelines.py::TestCvpPipelines::test_run_cvp_func_sanity \
125 tcp_tests/tests/system/test_cvp_pipelines.py::TestCvpPipelines::test_run_cvp_stacklight
126 test-opt-with-contrail: |-
127 --keep-duplicates --maxfail=1 \
128 tcp_tests/tests/system/test_mcp_update.py::TestUpdateMcpCluster::test_update_drivetrain \
129 tcp_tests/tests/system/test_upgrade_contrail.py::TestUpdateContrail \
130 tcp_tests/tests/system/test_mcp_update.py::TestOpenstackUpdate \
Hanna Arhipova885a2ed2021-03-05 20:00:52 +0200131 tcp_tests/tests/system/test_mcp_update.py::TestUpdateMcpCluster::test_update_galera \
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200132 tcp_tests/tests/system/test_mcp_update.py::TestUpdateMcpCluster::test_update_rabbit \
133 tcp_tests/tests/system/test_mcp_update.py::TestUpdateMcpCluster::test_update_stacklight \
134 tcp_tests/tests/system/test_mcp_update.py::TestUpdateMcpCluster::test_update_ceph \
135 \
Hanna Arhipovae47f38e2021-03-05 22:19:35 +0200136 tcp_tests/tests/system/test_cvp_pipelines.py::TestCvpPipelines::test_run_cvp_tempest \
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200137 tcp_tests/tests/system/test_cvp_pipelines.py::TestCvpPipelines::test_run_cvp_func_sanity \
138 tcp_tests/tests/system/test_cvp_pipelines.py::TestCvpPipelines::test_run_cvp_stacklight
139
140 test_scenario:
141 - mcp-update-pike-sl:
142 deployment: released-heat-cicd-pike-dvr-sl
143 disabled: true
144 run-test-opts: '{test-opt}'
Hanna Arhipovae92b66b2021-04-15 19:56:30 +0300145 display-name: MCP update (pike)
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200146
147 - mcp-update-queens-dvr-sl:
148 deployment: released-heat-cicd-queens-dvr-sl
149 disabled: true
150 run-test-opts: '{test-opt}'
Hanna Arhipovae92b66b2021-04-15 19:56:30 +0300151 display-name: MCP update (queens)
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200152
153 - mcp-update-pike-contrail-sl:
154 deployment: released-heat-cicd-pike-contrail41-sl
155 disabled: true
156 run-test-opts: '{test-opt-with-contrail}'
Hanna Arhipovae92b66b2021-04-15 19:56:30 +0300157 display-name: MCP update (pike + OC)
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200158
159 - mcp-update-queens-contrail-sl:
160 deployment: released-heat-cicd-queens-contrail41-sl
161 disabled: true
162 run-test-opts: '{test-opt-with-contrail}'
Hanna Arhipovae92b66b2021-04-15 19:56:30 +0300163 display-name: MCP update (queens + OC)
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200164
165 - os-update-pike-to-queens:
166 deployment: heat-cicd-pike-dvr-sl
167 run-test-opts: '-k TestUpdatePikeToQueens'
Hanna Arhipovae92b66b2021-04-15 19:56:30 +0300168 display-name: Update Pike -> Queens
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200169
170 - ceph-update-luminous-to-nautilus:
171 deployment: heat-cicd-pike-dvr-sl
172 disabled: true
173 run-test-opts: '-k TestCephUpdate'
Hanna Arhipovae92b66b2021-04-15 19:56:30 +0300174 display-name: Update Ceph Luminous -> Nautilus
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200175
176 jobs:
177 - '{test_scenario}'
178
179###################### JOB TEMPLATE ###################
180- job-template:
181 name: '{test_scenario}'
Hanna Arhipovae92b66b2021-04-15 19:56:30 +0300182 display-name: '{display-name}'
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200183 project-type: pipeline
184 concurrent: false
185 disabled: '{disabled|false}'
186 quiet-period: 2
187 node: 'openstack_slave_{deployment}'
188 logrotate:
189 daysToKeep: 30
190 numToKeep: 60
191 artifactDaysToKeep: -1
192 artifactNumToKeep: -1
193 # Requires the Jenkins BuildResultTrigger Plugin
194 triggers:
195 - build-result:
196 cron: '* * * * *'
197 combine: true
198 groups:
199 - jobs:
200 - '{deployment}'
201 results:
202 - success
203
204 pipeline-scm:
205 lightweight-checkout: false
206 scm:
207 - git:
208 branches:
209 - FETCH_HEAD
210 refspec: ${{TCP_QA_REFS}}
211 url: https://gerrit.mcp.mirantis.com/mcp/tcp-qa.git
212 script-path: jobs/pipelines/run-test-scenarios.groovy
213
214 parameters:
215 - node:
216 name: NODE
217 allowed-slaves:
218 - 'openstack_slave_{deployment}'
219 - string:
220 default: '{deployment}'
221 description: 'Required: Fuel-devops environment name'
222 name: ENV_NAME
223 trim: 'false'
224 - string:
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200225 default: 'openstack_slave_{deployment}'
226 description: 'Required: Name of the jenkins slave to create the environment
227 To be set by the parent deployment job.'
228 name: PARENT_NODE_NAME
229 trim: 'false'
230 - string:
231 default: '/home/jenkins/workspace/workspace/{deployment}'
232 description: 'Required: Workspace on the jenkins slave to reuse for
233 the job To be set by the parent deployment job'
234 name: PARENT_WORKSPACE
235 trim: 'false'
236 - string:
Hanna Arhipovae92b66b2021-04-15 19:56:30 +0300237 default: '2019.2.0'
238 description: 'MCP version'
239 name: MCP_VERSION
240 trim: 'false'
241 - string:
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200242 default: ''
243 description: 'Completed steps to install components on the environment.
244 If tests require some additional components, it may be installed in
245 appropriate fixtures, so set the PASSED_STEPS correctly for the
246 testing environment.'
247 name: PASSED_STEPS
248 trim: 'false'
249 - string:
250 default: ''
251 description: 'Example: refs/changes/89/411189/36
252 (for now - only one reference allowed)'
253 name: TCP_QA_REFS
254 trim: 'false'
255 - text:
256 default: '{run-test-opts}'
257 description: |-
258 Pytest option -k or -m, with expression to select necessary tests.
259 Additional pytest options are allowed.
260 name: RUN_TEST_OPTS
261 trim: 'false'
262 - bool:
263 default: true
264 name: REPORT_TO_TESTRAIL
265
266