blob: fb9013149b9138635d6dff55baa37fefbbb0fb5a [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
PGlazov5bf139e2021-08-11 13:43:56 +0400146 test-pattern-with-contrail:
147 ^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 +0200148 test_scenario:
PGlazov3704e4b2021-06-23 15:10:04 +0400149 - mcp-update-pike-dvr-sl:
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200150 deployment: released-heat-cicd-pike-dvr-sl
151 disabled: true
152 run-test-opts: '{test-opt}'
PGlazov5bf139e2021-08-11 13:43:56 +0400153 tempest_pattern: 'tempest'
Hanna Arhipovae92b66b2021-04-15 19:56:30 +0300154 display-name: MCP update (pike)
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200155
156 - mcp-update-queens-dvr-sl:
157 deployment: released-heat-cicd-queens-dvr-sl
158 disabled: true
PGlazov5bf139e2021-08-11 13:43:56 +0400159 tempest_pattern: 'tempest'
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200160 run-test-opts: '{test-opt}'
Hanna Arhipovae92b66b2021-04-15 19:56:30 +0300161 display-name: MCP update (queens)
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200162
163 - mcp-update-pike-contrail-sl:
164 deployment: released-heat-cicd-pike-contrail41-sl
165 disabled: true
PGlazov5bf139e2021-08-11 13:43:56 +0400166 tempest_pattern: '{test-pattern-with-contrail}'
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200167 run-test-opts: '{test-opt-with-contrail}'
Hanna Arhipovae92b66b2021-04-15 19:56:30 +0300168 display-name: MCP update (pike + OC)
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200169
170 - mcp-update-queens-contrail-sl:
171 deployment: released-heat-cicd-queens-contrail41-sl
172 disabled: true
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 (queens + OC)
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200176
177 - os-update-pike-to-queens:
178 deployment: heat-cicd-pike-dvr-sl
179 run-test-opts: '-k TestUpdatePikeToQueens'
Hanna Arhipovae92b66b2021-04-15 19:56:30 +0300180 display-name: Update Pike -> Queens
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200181
182 - ceph-update-luminous-to-nautilus:
183 deployment: heat-cicd-pike-dvr-sl
184 disabled: true
Hanna Arhipova7f2a1752021-04-22 09:59:11 +0300185 run-test-opts: '-k TestCephLuminousUpgrade'
Hanna Arhipovae92b66b2021-04-15 19:56:30 +0300186 display-name: Update Ceph Luminous -> Nautilus
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200187
188 jobs:
189 - '{test_scenario}'
PGlazov3704e4b2021-06-23 15:10:04 +0400190 logrotate:
191 daysToKeep: 365
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200192
193###################### JOB TEMPLATE ###################
194- job-template:
195 name: '{test_scenario}'
Hanna Arhipovae92b66b2021-04-15 19:56:30 +0300196 display-name: '{display-name}'
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200197 project-type: pipeline
198 concurrent: false
199 disabled: '{disabled|false}'
200 quiet-period: 2
201 node: 'openstack_slave_{deployment}'
202 logrotate:
203 daysToKeep: 30
204 numToKeep: 60
205 artifactDaysToKeep: -1
206 artifactNumToKeep: -1
207 # Requires the Jenkins BuildResultTrigger Plugin
208 triggers:
209 - build-result:
210 cron: '* * * * *'
211 combine: true
212 groups:
213 - jobs:
214 - '{deployment}'
215 results:
216 - success
217
218 pipeline-scm:
219 lightweight-checkout: false
220 scm:
221 - git:
222 branches:
223 - FETCH_HEAD
224 refspec: ${{TCP_QA_REFS}}
225 url: https://gerrit.mcp.mirantis.com/mcp/tcp-qa.git
226 script-path: jobs/pipelines/run-test-scenarios.groovy
227
228 parameters:
229 - node:
230 name: NODE
231 allowed-slaves:
232 - 'openstack_slave_{deployment}'
233 - string:
234 default: '{deployment}'
235 description: 'Required: Fuel-devops environment name'
236 name: ENV_NAME
237 trim: 'false'
238 - string:
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200239 default: 'openstack_slave_{deployment}'
240 description: 'Required: Name of the jenkins slave to create the environment
241 To be set by the parent deployment job.'
242 name: PARENT_NODE_NAME
243 trim: 'false'
244 - string:
245 default: '/home/jenkins/workspace/workspace/{deployment}'
246 description: 'Required: Workspace on the jenkins slave to reuse for
247 the job To be set by the parent deployment job'
248 name: PARENT_WORKSPACE
249 trim: 'false'
250 - string:
Hanna Arhipovae92b66b2021-04-15 19:56:30 +0300251 default: '2019.2.0'
252 description: 'MCP version'
253 name: MCP_VERSION
254 trim: 'false'
255 - string:
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200256 default: ''
257 description: 'Completed steps to install components on the environment.
258 If tests require some additional components, it may be installed in
259 appropriate fixtures, so set the PASSED_STEPS correctly for the
260 testing environment.'
261 name: PASSED_STEPS
262 trim: 'false'
263 - string:
264 default: ''
265 description: 'Example: refs/changes/89/411189/36
266 (for now - only one reference allowed)'
267 name: TCP_QA_REFS
268 trim: 'false'
269 - text:
270 default: '{run-test-opts}'
271 description: |-
272 Pytest option -k or -m, with expression to select necessary tests.
273 Additional pytest options are allowed.
274 name: RUN_TEST_OPTS
275 trim: 'false'
PGlazov5bf139e2021-08-11 13:43:56 +0400276 - text:
277 default: '{tempest_pattern}'
278 description: |-
279 Examples: 'set=full','set=smoke' or test name.
280 name: TEMPEST_PATTERN
281 trim: 'false'
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200282 - bool:
283 default: true
284 name: REPORT_TO_TESTRAIL
285
286