blob: abf72731870b8f19278c4eade9fed6afdd1d4a33 [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}'
PGlazov3704e4b2021-06-23 15:10:04 +040096 logrotate:
97 daysToKeep: 365
Hanna Arhipova4759ae42021-01-11 12:48:14 +020098
99- job-group:
100 name: 'ceph-tests'
101 test_scenario:
102 - ceph_osd-queens-dvr-sl:
Hanna Arhipova6adb16d2021-05-18 14:24:40 +0300103 run-test-opts: '--maxfail=1 -k TestCephOsd'
Hanna Arhipovae92b66b2021-04-15 19:56:30 +0300104 deployment: heat-cicd-queens-dvr-sl
105 display-name: Add/Remove OSD node
106 - ceph_cmn-queens-dvr-sl:
Hanna Arhipova6adb16d2021-05-18 14:24:40 +0300107 run-test-opts: '--maxfail=1 -k TestCephMon'
Hanna Arhipovae92b66b2021-04-15 19:56:30 +0300108 deployment: heat-cicd-queens-dvr-sl
109 display-name: Add/Remove CMN node
Hanna Arhipova6adb16d2021-05-18 14:24:40 +0300110 - 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 Arhipovac2cb6a52021-10-20 14:30:05 +0300114 - ceph_failover:
115 run-test-opts: '--maxfail=1 -k TestFailoverCeph'
116 deployment: heat-cicd-queens-dvr-sl
117 display-name: Failover tests for Ceph nodes
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200118 jobs:
119 - '{test_scenario}'
PGlazov3704e4b2021-06-23 15:10:04 +0400120 logrotate:
121 daysToKeep: 365
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200122
123- job-group:
124 name: 'update-tests'
125 test-opt: |-
126 --keep-duplicates --maxfail=1 \
127 tcp_tests/tests/system/test_mcp_update.py::TestUpdateMcpCluster::test_update_drivetrain \
128 tcp_tests/tests/system/test_mcp_update.py::TestOpenstackUpdate \
Hanna Arhipova885a2ed2021-03-05 20:00:52 +0200129 tcp_tests/tests/system/test_mcp_update.py::TestUpdateMcpCluster::test_update_galera \
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200130 tcp_tests/tests/system/test_mcp_update.py::TestUpdateMcpCluster::test_update_rabbit \
131 tcp_tests/tests/system/test_mcp_update.py::TestUpdateMcpCluster::test_update_stacklight \
132 tcp_tests/tests/system/test_mcp_update.py::TestUpdateMcpCluster::test_update_ceph \
133 \
Hanna Arhipovae47f38e2021-03-05 22:19:35 +0200134 tcp_tests/tests/system/test_cvp_pipelines.py::TestCvpPipelines::test_run_cvp_tempest \
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200135 tcp_tests/tests/system/test_cvp_pipelines.py::TestCvpPipelines::test_run_cvp_func_sanity \
136 tcp_tests/tests/system/test_cvp_pipelines.py::TestCvpPipelines::test_run_cvp_stacklight
137 test-opt-with-contrail: |-
138 --keep-duplicates --maxfail=1 \
139 tcp_tests/tests/system/test_mcp_update.py::TestUpdateMcpCluster::test_update_drivetrain \
140 tcp_tests/tests/system/test_upgrade_contrail.py::TestUpdateContrail \
141 tcp_tests/tests/system/test_mcp_update.py::TestOpenstackUpdate \
Hanna Arhipova885a2ed2021-03-05 20:00:52 +0200142 tcp_tests/tests/system/test_mcp_update.py::TestUpdateMcpCluster::test_update_galera \
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200143 tcp_tests/tests/system/test_mcp_update.py::TestUpdateMcpCluster::test_update_rabbit \
144 tcp_tests/tests/system/test_mcp_update.py::TestUpdateMcpCluster::test_update_stacklight \
145 tcp_tests/tests/system/test_mcp_update.py::TestUpdateMcpCluster::test_update_ceph \
146 \
Hanna Arhipovae47f38e2021-03-05 22:19:35 +0200147 tcp_tests/tests/system/test_cvp_pipelines.py::TestCvpPipelines::test_run_cvp_tempest \
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200148 tcp_tests/tests/system/test_cvp_pipelines.py::TestCvpPipelines::test_run_cvp_func_sanity \
149 tcp_tests/tests/system/test_cvp_pipelines.py::TestCvpPipelines::test_run_cvp_stacklight
PGlazov5bf139e2021-08-11 13:43:56 +0400150 test-pattern-with-contrail:
151 ^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 +0200152 test_scenario:
PGlazov3704e4b2021-06-23 15:10:04 +0400153 - mcp-update-pike-dvr-sl:
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200154 deployment: released-heat-cicd-pike-dvr-sl
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200155 run-test-opts: '{test-opt}'
PGlazov5bf139e2021-08-11 13:43:56 +0400156 tempest_pattern: 'tempest'
Hanna Arhipovae92b66b2021-04-15 19:56:30 +0300157 display-name: MCP update (pike)
PGlazov560be2c2021-10-18 20:43:58 +0400158 tempest_test_suite: "[MCP1.1_PIKE]Tempest"
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200159
160 - mcp-update-queens-dvr-sl:
161 deployment: released-heat-cicd-queens-dvr-sl
PGlazov5bf139e2021-08-11 13:43:56 +0400162 tempest_pattern: 'tempest'
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200163 run-test-opts: '{test-opt}'
Hanna Arhipovae92b66b2021-04-15 19:56:30 +0300164 display-name: MCP update (queens)
PGlazov560be2c2021-10-18 20:43:58 +0400165 tempest_test_suite: "[MCP1.1_QUEENS]Tempest"
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200166
167 - mcp-update-pike-contrail-sl:
168 deployment: released-heat-cicd-pike-contrail41-sl
PGlazov5bf139e2021-08-11 13:43:56 +0400169 tempest_pattern: '{test-pattern-with-contrail}'
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200170 run-test-opts: '{test-opt-with-contrail}'
Hanna Arhipovae92b66b2021-04-15 19:56:30 +0300171 display-name: MCP update (pike + OC)
PGlazov560be2c2021-10-18 20:43:58 +0400172 tempest_test_suite: "[MCP1.1_PIKE]Tempest"
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200173
174 - mcp-update-queens-contrail-sl:
175 deployment: released-heat-cicd-queens-contrail41-sl
PGlazov5bf139e2021-08-11 13:43:56 +0400176 tempest_pattern: '{test-pattern-with-contrail}'
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200177 run-test-opts: '{test-opt-with-contrail}'
Hanna Arhipovae92b66b2021-04-15 19:56:30 +0300178 display-name: MCP update (queens + OC)
PGlazov560be2c2021-10-18 20:43:58 +0400179 tempest_test_suite: "[MCP1.1_QUEENS]Tempest"
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200180
181 - os-update-pike-to-queens:
182 deployment: heat-cicd-pike-dvr-sl
Hanna Arhipova0c285e02021-08-17 10:21:12 +0300183 disabled: true
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200184 run-test-opts: '-k TestUpdatePikeToQueens'
Hanna Arhipovae92b66b2021-04-15 19:56:30 +0300185 display-name: Update Pike -> Queens
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200186
187 - ceph-update-luminous-to-nautilus:
188 deployment: heat-cicd-pike-dvr-sl
189 disabled: true
Hanna Arhipova7f2a1752021-04-22 09:59:11 +0300190 run-test-opts: '-k TestCephLuminousUpgrade'
Hanna Arhipovae92b66b2021-04-15 19:56:30 +0300191 display-name: Update Ceph Luminous -> Nautilus
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200192
193 jobs:
194 - '{test_scenario}'
PGlazov3704e4b2021-06-23 15:10:04 +0400195 logrotate:
196 daysToKeep: 365
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200197
198###################### JOB TEMPLATE ###################
199- job-template:
200 name: '{test_scenario}'
Hanna Arhipovae92b66b2021-04-15 19:56:30 +0300201 display-name: '{display-name}'
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200202 project-type: pipeline
203 concurrent: false
204 disabled: '{disabled|false}'
205 quiet-period: 2
206 node: 'openstack_slave_{deployment}'
207 logrotate:
208 daysToKeep: 30
209 numToKeep: 60
210 artifactDaysToKeep: -1
211 artifactNumToKeep: -1
212 # Requires the Jenkins BuildResultTrigger Plugin
213 triggers:
214 - build-result:
215 cron: '* * * * *'
216 combine: true
217 groups:
218 - jobs:
219 - '{deployment}'
220 results:
221 - success
222
223 pipeline-scm:
224 lightweight-checkout: false
225 scm:
226 - git:
227 branches:
228 - FETCH_HEAD
229 refspec: ${{TCP_QA_REFS}}
230 url: https://gerrit.mcp.mirantis.com/mcp/tcp-qa.git
231 script-path: jobs/pipelines/run-test-scenarios.groovy
232
233 parameters:
234 - node:
235 name: NODE
236 allowed-slaves:
237 - 'openstack_slave_{deployment}'
238 - string:
239 default: '{deployment}'
240 description: 'Required: Fuel-devops environment name'
241 name: ENV_NAME
242 trim: 'false'
243 - string:
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200244 default: 'openstack_slave_{deployment}'
245 description: 'Required: Name of the jenkins slave to create the environment
246 To be set by the parent deployment job.'
247 name: PARENT_NODE_NAME
248 trim: 'false'
249 - string:
250 default: '/home/jenkins/workspace/workspace/{deployment}'
251 description: 'Required: Workspace on the jenkins slave to reuse for
252 the job To be set by the parent deployment job'
253 name: PARENT_WORKSPACE
254 trim: 'false'
255 - string:
Hanna Arhipovae92b66b2021-04-15 19:56:30 +0300256 default: '2019.2.0'
257 description: 'MCP version'
258 name: MCP_VERSION
259 trim: 'false'
260 - string:
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200261 default: ''
262 description: 'Completed steps to install components on the environment.
263 If tests require some additional components, it may be installed in
264 appropriate fixtures, so set the PASSED_STEPS correctly for the
265 testing environment.'
266 name: PASSED_STEPS
267 trim: 'false'
268 - string:
PGlazov560be2c2021-10-18 20:43:58 +0400269 default: '{tempest_test_suite|}'
270 description: '[MCP1.1_xxx]Tempest where xxx - MCP version
271 using only for report to testrail'
272 name: TEMPEST_TEST_SUITE_NAME
273 trim: 'false'
274 - string:
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200275 default: ''
276 description: 'Example: refs/changes/89/411189/36
277 (for now - only one reference allowed)'
278 name: TCP_QA_REFS
279 trim: 'false'
280 - text:
281 default: '{run-test-opts}'
282 description: |-
283 Pytest option -k or -m, with expression to select necessary tests.
284 Additional pytest options are allowed.
285 name: RUN_TEST_OPTS
286 trim: 'false'
PGlazov5bf139e2021-08-11 13:43:56 +0400287 - text:
PGlazov2a1e25a2021-08-16 14:58:45 +0400288 default: '{tempest_pattern|}'
PGlazov5bf139e2021-08-11 13:43:56 +0400289 description: |-
290 Examples: 'set=full','set=smoke' or test name.
291 name: TEMPEST_PATTERN
292 trim: 'false'
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200293 - bool:
294 default: true
295 name: REPORT_TO_TESTRAIL
296
297