blob: f613acacecfdfae961d8b3161738e5cad26c0514 [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 Arhipova6adb16d2021-05-18 14:24:40 +030066 run-test-opts: '--maxfail=1 -k TestBackupRestoreMaster and not maas'
Hanna Arhipova4759ae42021-01-11 12:48:14 +020067 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 Arhipova6adb16d2021-05-18 14:24:40 +030071 run-test-opts: '--maxfail=1 -k TestBackupRestoreMaster and maas'
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:
Hanna Arhipova6adb16d2021-05-18 14:24:40 +030076 run-test-opts: '--maxfail=1 -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:
Hanna Arhipova6adb16d2021-05-18 14:24:40 +030081 run-test-opts: '--maxfail=1 -k TestBackupRestoreGalera'
Hanna Arhipova42b06232021-04-22 09:29:44 +030082 deployment: heat-cicd-queens-dvr-sl
83 display-name: Backup/restore Galera
84
85 - backup-zookeeper-queens-sl:
Hanna Arhipova6adb16d2021-05-18 14:24:40 +030086 run-test-opts: '--maxfail=1 -k TestBackupRestoreZooKeeper'
Hanna Arhipova7f2a1752021-04-22 09:59:11 +030087 deployment: heat-cicd-queens-contrail41-sl
Hanna Arhipova42b06232021-04-22 09:29:44 +030088 display-name: Backup/restore Zookeeper
89
Hanna Arhipova4759ae42021-01-11 12:48:14 +020090 jobs:
91 - '{test_scenario}'
PGlazov3704e4b2021-06-23 15:10:04 +040092 logrotate:
93 daysToKeep: 365
Hanna Arhipova4759ae42021-01-11 12:48:14 +020094
95- job-group:
96 name: 'ceph-tests'
97 test_scenario:
98 - ceph_osd-queens-dvr-sl:
Hanna Arhipova6adb16d2021-05-18 14:24:40 +030099 run-test-opts: '--maxfail=1 -k TestCephOsd'
Hanna Arhipovae92b66b2021-04-15 19:56:30 +0300100 deployment: heat-cicd-queens-dvr-sl
101 display-name: Add/Remove OSD node
102 - ceph_cmn-queens-dvr-sl:
Hanna Arhipova6adb16d2021-05-18 14:24:40 +0300103 run-test-opts: '--maxfail=1 -k TestCephMon'
Hanna Arhipovae92b66b2021-04-15 19:56:30 +0300104 deployment: heat-cicd-queens-dvr-sl
105 display-name: Add/Remove CMN node
106 - ceph_mgr-queens-dvr-sl:
Hanna Arhipova6adb16d2021-05-18 14:24:40 +0300107 run-test-opts: '--maxfail=1 -k TestCephMgr'
108 deployment: heat-cicd-queens-dvr-sl
109 display-name: Add/Remove MGR node
110 - ceph_rgw-queens-dvr-sl:
111 run-test-opts: '--maxfail=1 -k TestCephRgw'
Hanna Arhipovae92b66b2021-04-15 19:56:30 +0300112 deployment: heat-cicd-queens-dvr-sl
PGlazov276d88f2021-07-06 15:12:16 +0400113 display-name: Add/Remove RGW node
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200114 jobs:
115 - '{test_scenario}'
PGlazov3704e4b2021-06-23 15:10:04 +0400116 logrotate:
117 daysToKeep: 365
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200118
119- job-group:
120 name: 'update-tests'
121 test-opt: |-
122 --keep-duplicates --maxfail=1 \
123 tcp_tests/tests/system/test_mcp_update.py::TestUpdateMcpCluster::test_update_drivetrain \
124 tcp_tests/tests/system/test_mcp_update.py::TestOpenstackUpdate \
Hanna Arhipova885a2ed2021-03-05 20:00:52 +0200125 tcp_tests/tests/system/test_mcp_update.py::TestUpdateMcpCluster::test_update_galera \
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200126 tcp_tests/tests/system/test_mcp_update.py::TestUpdateMcpCluster::test_update_rabbit \
127 tcp_tests/tests/system/test_mcp_update.py::TestUpdateMcpCluster::test_update_stacklight \
128 tcp_tests/tests/system/test_mcp_update.py::TestUpdateMcpCluster::test_update_ceph \
129 \
Hanna Arhipovae47f38e2021-03-05 22:19:35 +0200130 tcp_tests/tests/system/test_cvp_pipelines.py::TestCvpPipelines::test_run_cvp_tempest \
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200131 tcp_tests/tests/system/test_cvp_pipelines.py::TestCvpPipelines::test_run_cvp_func_sanity \
132 tcp_tests/tests/system/test_cvp_pipelines.py::TestCvpPipelines::test_run_cvp_stacklight
133 test-opt-with-contrail: |-
134 --keep-duplicates --maxfail=1 \
135 tcp_tests/tests/system/test_mcp_update.py::TestUpdateMcpCluster::test_update_drivetrain \
136 tcp_tests/tests/system/test_upgrade_contrail.py::TestUpdateContrail \
137 tcp_tests/tests/system/test_mcp_update.py::TestOpenstackUpdate \
Hanna Arhipova885a2ed2021-03-05 20:00:52 +0200138 tcp_tests/tests/system/test_mcp_update.py::TestUpdateMcpCluster::test_update_galera \
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200139 tcp_tests/tests/system/test_mcp_update.py::TestUpdateMcpCluster::test_update_rabbit \
140 tcp_tests/tests/system/test_mcp_update.py::TestUpdateMcpCluster::test_update_stacklight \
141 tcp_tests/tests/system/test_mcp_update.py::TestUpdateMcpCluster::test_update_ceph \
142 \
Hanna Arhipovae47f38e2021-03-05 22:19:35 +0200143 tcp_tests/tests/system/test_cvp_pipelines.py::TestCvpPipelines::test_run_cvp_tempest \
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200144 tcp_tests/tests/system/test_cvp_pipelines.py::TestCvpPipelines::test_run_cvp_func_sanity \
145 tcp_tests/tests/system/test_cvp_pipelines.py::TestCvpPipelines::test_run_cvp_stacklight
146
147 test_scenario:
PGlazov3704e4b2021-06-23 15:10:04 +0400148 - mcp-update-pike-dvr-sl:
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200149 deployment: released-heat-cicd-pike-dvr-sl
150 disabled: true
151 run-test-opts: '{test-opt}'
Hanna Arhipovae92b66b2021-04-15 19:56:30 +0300152 display-name: MCP update (pike)
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200153
154 - mcp-update-queens-dvr-sl:
155 deployment: released-heat-cicd-queens-dvr-sl
156 disabled: true
157 run-test-opts: '{test-opt}'
Hanna Arhipovae92b66b2021-04-15 19:56:30 +0300158 display-name: MCP update (queens)
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200159
160 - mcp-update-pike-contrail-sl:
161 deployment: released-heat-cicd-pike-contrail41-sl
162 disabled: true
163 run-test-opts: '{test-opt-with-contrail}'
Hanna Arhipovae92b66b2021-04-15 19:56:30 +0300164 display-name: MCP update (pike + OC)
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200165
166 - mcp-update-queens-contrail-sl:
167 deployment: released-heat-cicd-queens-contrail41-sl
168 disabled: true
169 run-test-opts: '{test-opt-with-contrail}'
Hanna Arhipovae92b66b2021-04-15 19:56:30 +0300170 display-name: MCP update (queens + OC)
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200171
172 - os-update-pike-to-queens:
173 deployment: heat-cicd-pike-dvr-sl
174 run-test-opts: '-k TestUpdatePikeToQueens'
Hanna Arhipovae92b66b2021-04-15 19:56:30 +0300175 display-name: Update Pike -> Queens
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200176
177 - ceph-update-luminous-to-nautilus:
178 deployment: heat-cicd-pike-dvr-sl
179 disabled: true
Hanna Arhipova7f2a1752021-04-22 09:59:11 +0300180 run-test-opts: '-k TestCephLuminousUpgrade'
Hanna Arhipovae92b66b2021-04-15 19:56:30 +0300181 display-name: Update Ceph Luminous -> Nautilus
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200182
183 jobs:
184 - '{test_scenario}'
PGlazov3704e4b2021-06-23 15:10:04 +0400185 logrotate:
186 daysToKeep: 365
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200187
188###################### JOB TEMPLATE ###################
189- job-template:
190 name: '{test_scenario}'
Hanna Arhipovae92b66b2021-04-15 19:56:30 +0300191 display-name: '{display-name}'
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200192 project-type: pipeline
193 concurrent: false
194 disabled: '{disabled|false}'
195 quiet-period: 2
196 node: 'openstack_slave_{deployment}'
197 logrotate:
198 daysToKeep: 30
199 numToKeep: 60
200 artifactDaysToKeep: -1
201 artifactNumToKeep: -1
202 # Requires the Jenkins BuildResultTrigger Plugin
203 triggers:
204 - build-result:
205 cron: '* * * * *'
206 combine: true
207 groups:
208 - jobs:
209 - '{deployment}'
210 results:
211 - success
212
213 pipeline-scm:
214 lightweight-checkout: false
215 scm:
216 - git:
217 branches:
218 - FETCH_HEAD
219 refspec: ${{TCP_QA_REFS}}
220 url: https://gerrit.mcp.mirantis.com/mcp/tcp-qa.git
221 script-path: jobs/pipelines/run-test-scenarios.groovy
222
223 parameters:
224 - node:
225 name: NODE
226 allowed-slaves:
227 - 'openstack_slave_{deployment}'
228 - string:
229 default: '{deployment}'
230 description: 'Required: Fuel-devops environment name'
231 name: ENV_NAME
232 trim: 'false'
233 - string:
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200234 default: 'openstack_slave_{deployment}'
235 description: 'Required: Name of the jenkins slave to create the environment
236 To be set by the parent deployment job.'
237 name: PARENT_NODE_NAME
238 trim: 'false'
239 - string:
240 default: '/home/jenkins/workspace/workspace/{deployment}'
241 description: 'Required: Workspace on the jenkins slave to reuse for
242 the job To be set by the parent deployment job'
243 name: PARENT_WORKSPACE
244 trim: 'false'
245 - string:
Hanna Arhipovae92b66b2021-04-15 19:56:30 +0300246 default: '2019.2.0'
247 description: 'MCP version'
248 name: MCP_VERSION
249 trim: 'false'
250 - string:
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200251 default: ''
252 description: 'Completed steps to install components on the environment.
253 If tests require some additional components, it may be installed in
254 appropriate fixtures, so set the PASSED_STEPS correctly for the
255 testing environment.'
256 name: PASSED_STEPS
257 trim: 'false'
258 - string:
259 default: ''
260 description: 'Example: refs/changes/89/411189/36
261 (for now - only one reference allowed)'
262 name: TCP_QA_REFS
263 trim: 'false'
264 - text:
265 default: '{run-test-opts}'
266 description: |-
267 Pytest option -k or -m, with expression to select necessary tests.
268 Additional pytest options are allowed.
269 name: RUN_TEST_OPTS
270 trim: 'false'
271 - bool:
272 default: true
273 name: REPORT_TO_TESTRAIL
274
275