blob: 2df3f5dd2d6ca1b40c7aabf6a14202b8bee06efc [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 Arhipovac2cb6a52021-10-20 14:30:05 +030066 run-test-opts: |-
67 tcp_tests/tests/system/test_backup_restore.py::TestBackupRestoreMaster::test_salt_master_manual_backup_restore_pipeline \
68 tcp_tests/tests/system/test_backup_restore.py::TestBackupRestoreMaster::test_salt_master_manual_backup_restore
Hanna Arhipova4759ae42021-01-11 12:48:14 +020069 deployment: heat-cicd-queens-dvr-sl
Hanna Arhipova42b06232021-04-22 09:29:44 +030070 display-name: Backup/Restore SaltMaster
Hanna Arhipova4759ae42021-01-11 12:48:14 +020071
Hanna Arhipova42b06232021-04-22 09:29:44 +030072 - backup-saltmaster-with-maas:
Hanna Arhipovac2cb6a52021-10-20 14:30:05 +030073 run-test-opts: |-
74 tcp_tests/tests/system/test_backup_restore.py::TestBackupRestoreMaster::test_maas_manual_backup_restore_pipeline \
75 tcp_tests/tests/system/test_backup_restore.py::TestBackupRestoreMaster::test_maas_backup_restore_manual
Hanna Arhipova42b06232021-04-22 09:29:44 +030076 deployment: bm-cicd-queens-ovs-maas
77 display-name: Backup/Restore SaltMaster (with MAAS)
Hanna Arhipova4759ae42021-01-11 12:48:14 +020078
79 - backup-cassandra-queens-contrail-sl:
Hanna Arhipova6adb16d2021-05-18 14:24:40 +030080 run-test-opts: '--maxfail=1 -k TestBackupRestoreCassandra'
Hanna Arhipova885a2ed2021-03-05 20:00:52 +020081 deployment: heat-cicd-queens-contrail41-sl
Hanna Arhipovae92b66b2021-04-15 19:56:30 +030082 display-name: Backup/restore Cassandra
Hanna Arhipova4759ae42021-01-11 12:48:14 +020083
Hanna Arhipova42b06232021-04-22 09:29:44 +030084 - backup-galera-queens-sl:
Hanna Arhipova6adb16d2021-05-18 14:24:40 +030085 run-test-opts: '--maxfail=1 -k TestBackupRestoreGalera'
Hanna Arhipova42b06232021-04-22 09:29:44 +030086 deployment: heat-cicd-queens-dvr-sl
87 display-name: Backup/restore Galera
88
89 - backup-zookeeper-queens-sl:
Hanna Arhipova6adb16d2021-05-18 14:24:40 +030090 run-test-opts: '--maxfail=1 -k TestBackupRestoreZooKeeper'
Hanna Arhipova7f2a1752021-04-22 09:59:11 +030091 deployment: heat-cicd-queens-contrail41-sl
Hanna Arhipova42b06232021-04-22 09:29:44 +030092 display-name: Backup/restore Zookeeper
93
Hanna Arhipova4759ae42021-01-11 12:48:14 +020094 jobs:
95 - '{test_scenario}'
Vladimir Khlyunevdf655882022-09-27 20:04:18 +040096 logrotate:
97 DaysToKeep: 365
98 artifactDaysToKeep: 60
Hanna Arhipova4759ae42021-01-11 12:48:14 +020099
100- job-group:
101 name: 'ceph-tests'
102 test_scenario:
103 - ceph_osd-queens-dvr-sl:
Hanna Arhipova6adb16d2021-05-18 14:24:40 +0300104 run-test-opts: '--maxfail=1 -k TestCephOsd'
Hanna Arhipovae92b66b2021-04-15 19:56:30 +0300105 deployment: heat-cicd-queens-dvr-sl
106 display-name: Add/Remove OSD node
107 - ceph_cmn-queens-dvr-sl:
Hanna Arhipova6adb16d2021-05-18 14:24:40 +0300108 run-test-opts: '--maxfail=1 -k TestCephMon'
Hanna Arhipovae92b66b2021-04-15 19:56:30 +0300109 deployment: heat-cicd-queens-dvr-sl
110 display-name: Add/Remove CMN node
Hanna Arhipova6adb16d2021-05-18 14:24:40 +0300111 - ceph_rgw-queens-dvr-sl:
112 run-test-opts: '--maxfail=1 -k TestCephRgw'
Hanna Arhipovae92b66b2021-04-15 19:56:30 +0300113 deployment: heat-cicd-queens-dvr-sl
PGlazov276d88f2021-07-06 15:12:16 +0400114 display-name: Add/Remove RGW node
Hanna Arhipovac2cb6a52021-10-20 14:30:05 +0300115 - ceph_failover:
116 run-test-opts: '--maxfail=1 -k TestFailoverCeph'
117 deployment: heat-cicd-queens-dvr-sl
118 display-name: Failover tests for Ceph nodes
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200119 jobs:
120 - '{test_scenario}'
Vladimir Khlyunevdf655882022-09-27 20:04:18 +0400121 logrotate:
122 DaysToKeep: 365
123 artifactDaysToKeep: 60
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200124
125- job-group:
126 name: 'update-tests'
127 test-opt: |-
128 --keep-duplicates --maxfail=1 \
129 tcp_tests/tests/system/test_mcp_update.py::TestUpdateMcpCluster::test_update_drivetrain \
130 tcp_tests/tests/system/test_mcp_update.py::TestOpenstackUpdate \
PGlazov7efe3b22022-02-16 17:29:05 +0400131 tcp_tests/tests/system/test_mcp_update.py::TestUpdateMcpCluster::test_update_galera --update-mysql-version 5.7 \
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 test-opt-with-contrail: |-
140 --keep-duplicates --maxfail=1 \
141 tcp_tests/tests/system/test_mcp_update.py::TestUpdateMcpCluster::test_update_drivetrain \
142 tcp_tests/tests/system/test_upgrade_contrail.py::TestUpdateContrail \
143 tcp_tests/tests/system/test_mcp_update.py::TestOpenstackUpdate \
Hanna Arhipova885a2ed2021-03-05 20:00:52 +0200144 tcp_tests/tests/system/test_mcp_update.py::TestUpdateMcpCluster::test_update_galera \
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200145 tcp_tests/tests/system/test_mcp_update.py::TestUpdateMcpCluster::test_update_rabbit \
146 tcp_tests/tests/system/test_mcp_update.py::TestUpdateMcpCluster::test_update_stacklight \
147 tcp_tests/tests/system/test_mcp_update.py::TestUpdateMcpCluster::test_update_ceph \
148 \
Hanna Arhipovae47f38e2021-03-05 22:19:35 +0200149 tcp_tests/tests/system/test_cvp_pipelines.py::TestCvpPipelines::test_run_cvp_tempest \
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200150 tcp_tests/tests/system/test_cvp_pipelines.py::TestCvpPipelines::test_run_cvp_func_sanity \
151 tcp_tests/tests/system/test_cvp_pipelines.py::TestCvpPipelines::test_run_cvp_stacklight
PGlazov5bf139e2021-08-11 13:43:56 +0400152 test-pattern-with-contrail:
153 ^heat_tempest_plugin.tests*|^tempest.api.image*|^tempest_horizon*|^tempest.api.identity*|^tempest.api.network*|^tempest.api.compute*|^tempest.api.volume*|^tempest.scenario*|^tempest.api.object_storage*
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200154 test_scenario:
PGlazov3a9f3332021-11-23 15:40:00 +0400155 - mcp-update-bm-b300-queens-ovs-maas:
156 deployment: released-bm-b300-cicd-queens-ovs-maas
157 run-test-opts: '{test-opt}'
158 tempest_pattern: 'tempest'
159 display-name: MCP update (BM-B300-queens + MAAS)
160 tempest_test_suite: "[MCP1.1_QUEENS]Tempest"
PGlazov6639eb32021-12-10 20:16:39 +0400161 passed_steps: "hardware,create_model,salt,core,kvm,cicd,openstack,ovs,ceph,stacklight"
PGlazov3a9f3332021-11-23 15:40:00 +0400162
PGlazov3704e4b2021-06-23 15:10:04 +0400163 - mcp-update-pike-dvr-sl:
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200164 deployment: released-heat-cicd-pike-dvr-sl
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200165 run-test-opts: '{test-opt}'
PGlazov5bf139e2021-08-11 13:43:56 +0400166 tempest_pattern: 'tempest'
Hanna Arhipovae92b66b2021-04-15 19:56:30 +0300167 display-name: MCP update (pike)
PGlazov560be2c2021-10-18 20:43:58 +0400168 tempest_test_suite: "[MCP1.1_PIKE]Tempest"
PGlazov6639eb32021-12-10 20:16:39 +0400169 passed_steps: "hardware,create_model,salt,core,cicd,openstack,ovs,ceph,stacklight"
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200170
171 - mcp-update-queens-dvr-sl:
172 deployment: released-heat-cicd-queens-dvr-sl
PGlazov5bf139e2021-08-11 13:43:56 +0400173 tempest_pattern: 'tempest'
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200174 run-test-opts: '{test-opt}'
Hanna Arhipovae92b66b2021-04-15 19:56:30 +0300175 display-name: MCP update (queens)
PGlazov560be2c2021-10-18 20:43:58 +0400176 tempest_test_suite: "[MCP1.1_QUEENS]Tempest"
PGlazov6639eb32021-12-10 20:16:39 +0400177 passed_steps: "hardware,create_model,salt,core,cicd,openstack,ovs,ceph,stacklight"
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200178
179 - mcp-update-pike-contrail-sl:
180 deployment: released-heat-cicd-pike-contrail41-sl
PGlazov5bf139e2021-08-11 13:43:56 +0400181 tempest_pattern: '{test-pattern-with-contrail}'
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200182 run-test-opts: '{test-opt-with-contrail}'
Hanna Arhipovae92b66b2021-04-15 19:56:30 +0300183 display-name: MCP update (pike + OC)
PGlazov560be2c2021-10-18 20:43:58 +0400184 tempest_test_suite: "[MCP1.1_PIKE]Tempest"
PGlazov6639eb32021-12-10 20:16:39 +0400185 passed_steps: "hardware,create_model,salt,core,cicd,openstack,contrail,ceph,stacklight"
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200186
187 - mcp-update-queens-contrail-sl:
188 deployment: released-heat-cicd-queens-contrail41-sl
PGlazov5bf139e2021-08-11 13:43:56 +0400189 tempest_pattern: '{test-pattern-with-contrail}'
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200190 run-test-opts: '{test-opt-with-contrail}'
Hanna Arhipovae92b66b2021-04-15 19:56:30 +0300191 display-name: MCP update (queens + OC)
PGlazov560be2c2021-10-18 20:43:58 +0400192 tempest_test_suite: "[MCP1.1_QUEENS]Tempest"
PGlazov6639eb32021-12-10 20:16:39 +0400193 passed_steps: "hardware,create_model,salt,core,cicd,openstack,contrail,ceph,stacklight"
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200194
195 - os-update-pike-to-queens:
196 deployment: heat-cicd-pike-dvr-sl
Hanna Arhipova0c285e02021-08-17 10:21:12 +0300197 disabled: true
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200198 run-test-opts: '-k TestUpdatePikeToQueens'
Hanna Arhipovae92b66b2021-04-15 19:56:30 +0300199 display-name: Update Pike -> Queens
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200200
201 - ceph-update-luminous-to-nautilus:
202 deployment: heat-cicd-pike-dvr-sl
203 disabled: true
Hanna Arhipova7f2a1752021-04-22 09:59:11 +0300204 run-test-opts: '-k TestCephLuminousUpgrade'
Hanna Arhipovae92b66b2021-04-15 19:56:30 +0300205 display-name: Update Ceph Luminous -> Nautilus
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200206
207 jobs:
208 - '{test_scenario}'
Vladimir Khlyunevdf655882022-09-27 20:04:18 +0400209 logrotate:
210 DaysToKeep: 365
211 artifactDaysToKeep: 60
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200212
213###################### JOB TEMPLATE ###################
214- job-template:
215 name: '{test_scenario}'
Hanna Arhipovae92b66b2021-04-15 19:56:30 +0300216 display-name: '{display-name}'
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200217 project-type: pipeline
Anna Arhipovadd9254c2022-09-16 11:56:45 +0200218 description: '{job-description}'
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200219 concurrent: false
220 disabled: '{disabled|false}'
221 quiet-period: 2
222 node: 'openstack_slave_{deployment}'
Vladimir Khlyunevdf655882022-09-27 20:04:18 +0400223 logrotate:
224 DaysToKeep: 365
225 artifactDaysToKeep: 60
Vladimir Khlyunev5e9fa7e2022-09-27 04:50:29 +0400226 num-to-keep: 60
227 artifact-num-to-keep: 60
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200228 # Requires the Jenkins BuildResultTrigger Plugin
229 triggers:
230 - build-result:
231 cron: '* * * * *'
232 combine: true
233 groups:
234 - jobs:
235 - '{deployment}'
236 results:
237 - success
238
239 pipeline-scm:
240 lightweight-checkout: false
241 scm:
242 - git:
243 branches:
244 - FETCH_HEAD
245 refspec: ${{TCP_QA_REFS}}
246 url: https://gerrit.mcp.mirantis.com/mcp/tcp-qa.git
247 script-path: jobs/pipelines/run-test-scenarios.groovy
248
249 parameters:
250 - node:
251 name: NODE
252 allowed-slaves:
253 - 'openstack_slave_{deployment}'
254 - string:
255 default: '{deployment}'
256 description: 'Required: Fuel-devops environment name'
257 name: ENV_NAME
258 trim: 'false'
259 - string:
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200260 default: 'openstack_slave_{deployment}'
261 description: 'Required: Name of the jenkins slave to create the environment
262 To be set by the parent deployment job.'
263 name: PARENT_NODE_NAME
264 trim: 'false'
265 - string:
266 default: '/home/jenkins/workspace/workspace/{deployment}'
267 description: 'Required: Workspace on the jenkins slave to reuse for
268 the job To be set by the parent deployment job'
269 name: PARENT_WORKSPACE
270 trim: 'false'
271 - string:
Hanna Arhipovae92b66b2021-04-15 19:56:30 +0300272 default: '2019.2.0'
273 description: 'MCP version'
274 name: MCP_VERSION
275 trim: 'false'
276 - string:
PGlazov6639eb32021-12-10 20:16:39 +0400277 default: '{passed_steps|}'
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200278 description: 'Completed steps to install components on the environment.
279 If tests require some additional components, it may be installed in
280 appropriate fixtures, so set the PASSED_STEPS correctly for the
281 testing environment.'
282 name: PASSED_STEPS
283 trim: 'false'
284 - string:
PGlazov560be2c2021-10-18 20:43:58 +0400285 default: '{tempest_test_suite|}'
286 description: '[MCP1.1_xxx]Tempest where xxx - MCP version
287 using only for report to testrail'
288 name: TEMPEST_TEST_SUITE_NAME
289 trim: 'false'
290 - string:
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200291 default: ''
292 description: 'Example: refs/changes/89/411189/36
293 (for now - only one reference allowed)'
294 name: TCP_QA_REFS
295 trim: 'false'
296 - text:
297 default: '{run-test-opts}'
298 description: |-
299 Pytest option -k or -m, with expression to select necessary tests.
300 Additional pytest options are allowed.
301 name: RUN_TEST_OPTS
302 trim: 'false'
PGlazov5bf139e2021-08-11 13:43:56 +0400303 - text:
PGlazov2a1e25a2021-08-16 14:58:45 +0400304 default: '{tempest_pattern|}'
PGlazov5bf139e2021-08-11 13:43:56 +0400305 description: |-
306 Examples: 'set=full','set=smoke' or test name.
307 name: TEMPEST_PATTERN
308 trim: 'false'
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200309 - bool:
310 default: true
311 name: REPORT_TO_TESTRAIL
312
313