blob: a214e4aa871f56f113af962963cd09b5bbf621ad [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
110 - ceph_mgr-queens-dvr-sl:
Hanna Arhipova6adb16d2021-05-18 14:24:40 +0300111 run-test-opts: '--maxfail=1 -k TestCephMgr'
112 deployment: heat-cicd-queens-dvr-sl
113 display-name: Add/Remove MGR node
114 - ceph_rgw-queens-dvr-sl:
115 run-test-opts: '--maxfail=1 -k TestCephRgw'
Hanna Arhipovae92b66b2021-04-15 19:56:30 +0300116 deployment: heat-cicd-queens-dvr-sl
PGlazov276d88f2021-07-06 15:12:16 +0400117 display-name: Add/Remove RGW node
Hanna Arhipovac2cb6a52021-10-20 14:30:05 +0300118 - ceph_failover:
119 run-test-opts: '--maxfail=1 -k TestFailoverCeph'
120 deployment: heat-cicd-queens-dvr-sl
121 display-name: Failover tests for Ceph nodes
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200122 jobs:
123 - '{test_scenario}'
PGlazov3704e4b2021-06-23 15:10:04 +0400124 logrotate:
125 daysToKeep: 365
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200126
127- job-group:
128 name: 'update-tests'
129 test-opt: |-
130 --keep-duplicates --maxfail=1 \
131 tcp_tests/tests/system/test_mcp_update.py::TestUpdateMcpCluster::test_update_drivetrain \
132 tcp_tests/tests/system/test_mcp_update.py::TestOpenstackUpdate \
Hanna Arhipova885a2ed2021-03-05 20:00:52 +0200133 tcp_tests/tests/system/test_mcp_update.py::TestUpdateMcpCluster::test_update_galera \
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200134 tcp_tests/tests/system/test_mcp_update.py::TestUpdateMcpCluster::test_update_rabbit \
135 tcp_tests/tests/system/test_mcp_update.py::TestUpdateMcpCluster::test_update_stacklight \
136 tcp_tests/tests/system/test_mcp_update.py::TestUpdateMcpCluster::test_update_ceph \
137 \
Hanna Arhipovae47f38e2021-03-05 22:19:35 +0200138 tcp_tests/tests/system/test_cvp_pipelines.py::TestCvpPipelines::test_run_cvp_tempest \
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200139 tcp_tests/tests/system/test_cvp_pipelines.py::TestCvpPipelines::test_run_cvp_func_sanity \
140 tcp_tests/tests/system/test_cvp_pipelines.py::TestCvpPipelines::test_run_cvp_stacklight
141 test-opt-with-contrail: |-
142 --keep-duplicates --maxfail=1 \
143 tcp_tests/tests/system/test_mcp_update.py::TestUpdateMcpCluster::test_update_drivetrain \
144 tcp_tests/tests/system/test_upgrade_contrail.py::TestUpdateContrail \
145 tcp_tests/tests/system/test_mcp_update.py::TestOpenstackUpdate \
Hanna Arhipova885a2ed2021-03-05 20:00:52 +0200146 tcp_tests/tests/system/test_mcp_update.py::TestUpdateMcpCluster::test_update_galera \
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200147 tcp_tests/tests/system/test_mcp_update.py::TestUpdateMcpCluster::test_update_rabbit \
148 tcp_tests/tests/system/test_mcp_update.py::TestUpdateMcpCluster::test_update_stacklight \
149 tcp_tests/tests/system/test_mcp_update.py::TestUpdateMcpCluster::test_update_ceph \
150 \
Hanna Arhipovae47f38e2021-03-05 22:19:35 +0200151 tcp_tests/tests/system/test_cvp_pipelines.py::TestCvpPipelines::test_run_cvp_tempest \
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200152 tcp_tests/tests/system/test_cvp_pipelines.py::TestCvpPipelines::test_run_cvp_func_sanity \
153 tcp_tests/tests/system/test_cvp_pipelines.py::TestCvpPipelines::test_run_cvp_stacklight
PGlazov5bf139e2021-08-11 13:43:56 +0400154 test-pattern-with-contrail:
155 ^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 +0200156 test_scenario:
PGlazov3704e4b2021-06-23 15:10:04 +0400157 - mcp-update-pike-dvr-sl:
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200158 deployment: released-heat-cicd-pike-dvr-sl
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200159 run-test-opts: '{test-opt}'
PGlazov5bf139e2021-08-11 13:43:56 +0400160 tempest_pattern: 'tempest'
Hanna Arhipovae92b66b2021-04-15 19:56:30 +0300161 display-name: MCP update (pike)
PGlazov560be2c2021-10-18 20:43:58 +0400162 tempest_test_suite: "[MCP1.1_PIKE]Tempest"
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200163
164 - mcp-update-queens-dvr-sl:
165 deployment: released-heat-cicd-queens-dvr-sl
PGlazov5bf139e2021-08-11 13:43:56 +0400166 tempest_pattern: 'tempest'
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200167 run-test-opts: '{test-opt}'
Hanna Arhipovae92b66b2021-04-15 19:56:30 +0300168 display-name: MCP update (queens)
PGlazov560be2c2021-10-18 20:43:58 +0400169 tempest_test_suite: "[MCP1.1_QUEENS]Tempest"
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200170
171 - mcp-update-pike-contrail-sl:
172 deployment: released-heat-cicd-pike-contrail41-sl
PGlazov5bf139e2021-08-11 13:43:56 +0400173 tempest_pattern: '{test-pattern-with-contrail}'
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200174 run-test-opts: '{test-opt-with-contrail}'
Hanna Arhipovae92b66b2021-04-15 19:56:30 +0300175 display-name: MCP update (pike + OC)
PGlazov560be2c2021-10-18 20:43:58 +0400176 tempest_test_suite: "[MCP1.1_PIKE]Tempest"
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200177
178 - mcp-update-queens-contrail-sl:
179 deployment: released-heat-cicd-queens-contrail41-sl
PGlazov5bf139e2021-08-11 13:43:56 +0400180 tempest_pattern: '{test-pattern-with-contrail}'
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200181 run-test-opts: '{test-opt-with-contrail}'
Hanna Arhipovae92b66b2021-04-15 19:56:30 +0300182 display-name: MCP update (queens + OC)
PGlazov560be2c2021-10-18 20:43:58 +0400183 tempest_test_suite: "[MCP1.1_QUEENS]Tempest"
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200184
185 - os-update-pike-to-queens:
186 deployment: heat-cicd-pike-dvr-sl
Hanna Arhipova0c285e02021-08-17 10:21:12 +0300187 disabled: true
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200188 run-test-opts: '-k TestUpdatePikeToQueens'
Hanna Arhipovae92b66b2021-04-15 19:56:30 +0300189 display-name: Update Pike -> Queens
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200190
191 - ceph-update-luminous-to-nautilus:
192 deployment: heat-cicd-pike-dvr-sl
193 disabled: true
Hanna Arhipova7f2a1752021-04-22 09:59:11 +0300194 run-test-opts: '-k TestCephLuminousUpgrade'
Hanna Arhipovae92b66b2021-04-15 19:56:30 +0300195 display-name: Update Ceph Luminous -> Nautilus
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200196
197 jobs:
198 - '{test_scenario}'
PGlazov3704e4b2021-06-23 15:10:04 +0400199 logrotate:
200 daysToKeep: 365
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200201
202###################### JOB TEMPLATE ###################
203- job-template:
204 name: '{test_scenario}'
Hanna Arhipovae92b66b2021-04-15 19:56:30 +0300205 display-name: '{display-name}'
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200206 project-type: pipeline
207 concurrent: false
208 disabled: '{disabled|false}'
209 quiet-period: 2
210 node: 'openstack_slave_{deployment}'
211 logrotate:
212 daysToKeep: 30
213 numToKeep: 60
214 artifactDaysToKeep: -1
215 artifactNumToKeep: -1
216 # Requires the Jenkins BuildResultTrigger Plugin
217 triggers:
218 - build-result:
219 cron: '* * * * *'
220 combine: true
221 groups:
222 - jobs:
223 - '{deployment}'
224 results:
225 - success
226
227 pipeline-scm:
228 lightweight-checkout: false
229 scm:
230 - git:
231 branches:
232 - FETCH_HEAD
233 refspec: ${{TCP_QA_REFS}}
234 url: https://gerrit.mcp.mirantis.com/mcp/tcp-qa.git
235 script-path: jobs/pipelines/run-test-scenarios.groovy
236
237 parameters:
238 - node:
239 name: NODE
240 allowed-slaves:
241 - 'openstack_slave_{deployment}'
242 - string:
243 default: '{deployment}'
244 description: 'Required: Fuel-devops environment name'
245 name: ENV_NAME
246 trim: 'false'
247 - string:
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200248 default: 'openstack_slave_{deployment}'
249 description: 'Required: Name of the jenkins slave to create the environment
250 To be set by the parent deployment job.'
251 name: PARENT_NODE_NAME
252 trim: 'false'
253 - string:
254 default: '/home/jenkins/workspace/workspace/{deployment}'
255 description: 'Required: Workspace on the jenkins slave to reuse for
256 the job To be set by the parent deployment job'
257 name: PARENT_WORKSPACE
258 trim: 'false'
259 - string:
Hanna Arhipovae92b66b2021-04-15 19:56:30 +0300260 default: '2019.2.0'
261 description: 'MCP version'
262 name: MCP_VERSION
263 trim: 'false'
264 - string:
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200265 default: ''
266 description: 'Completed steps to install components on the environment.
267 If tests require some additional components, it may be installed in
268 appropriate fixtures, so set the PASSED_STEPS correctly for the
269 testing environment.'
270 name: PASSED_STEPS
271 trim: 'false'
272 - string:
PGlazov560be2c2021-10-18 20:43:58 +0400273 default: '{tempest_test_suite|}'
274 description: '[MCP1.1_xxx]Tempest where xxx - MCP version
275 using only for report to testrail'
276 name: TEMPEST_TEST_SUITE_NAME
277 trim: 'false'
278 - string:
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200279 default: ''
280 description: 'Example: refs/changes/89/411189/36
281 (for now - only one reference allowed)'
282 name: TCP_QA_REFS
283 trim: 'false'
284 - text:
285 default: '{run-test-opts}'
286 description: |-
287 Pytest option -k or -m, with expression to select necessary tests.
288 Additional pytest options are allowed.
289 name: RUN_TEST_OPTS
290 trim: 'false'
PGlazov5bf139e2021-08-11 13:43:56 +0400291 - text:
PGlazov2a1e25a2021-08-16 14:58:45 +0400292 default: '{tempest_pattern|}'
PGlazov5bf139e2021-08-11 13:43:56 +0400293 description: |-
294 Examples: 'set=full','set=smoke' or test name.
295 name: TEMPEST_PATTERN
296 trim: 'false'
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200297 - bool:
298 default: true
299 name: REPORT_TO_TESTRAIL
300
301