blob: af90602eb6fb61999cf05dffeba9e8eafa31d37f [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}'
92
93- job-group:
94 name: 'ceph-tests'
95 test_scenario:
96 - ceph_osd-queens-dvr-sl:
Hanna Arhipova6adb16d2021-05-18 14:24:40 +030097 run-test-opts: '--maxfail=1 -k TestCephOsd'
Hanna Arhipovae92b66b2021-04-15 19:56:30 +030098 deployment: heat-cicd-queens-dvr-sl
99 display-name: Add/Remove OSD node
100 - ceph_cmn-queens-dvr-sl:
Hanna Arhipova6adb16d2021-05-18 14:24:40 +0300101 run-test-opts: '--maxfail=1 -k TestCephMon'
Hanna Arhipovae92b66b2021-04-15 19:56:30 +0300102 deployment: heat-cicd-queens-dvr-sl
103 display-name: Add/Remove CMN node
104 - ceph_mgr-queens-dvr-sl:
Hanna Arhipova6adb16d2021-05-18 14:24:40 +0300105 run-test-opts: '--maxfail=1 -k TestCephMgr'
106 deployment: heat-cicd-queens-dvr-sl
107 display-name: Add/Remove MGR node
108 - ceph_rgw-queens-dvr-sl:
109 run-test-opts: '--maxfail=1 -k TestCephRgw'
Hanna Arhipovae92b66b2021-04-15 19:56:30 +0300110 deployment: heat-cicd-queens-dvr-sl
111 display-name: Add/Remove MGR node
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200112 jobs:
113 - '{test_scenario}'
114
115- job-group:
116 name: 'update-tests'
117 test-opt: |-
118 --keep-duplicates --maxfail=1 \
119 tcp_tests/tests/system/test_mcp_update.py::TestUpdateMcpCluster::test_update_drivetrain \
120 tcp_tests/tests/system/test_mcp_update.py::TestOpenstackUpdate \
Hanna Arhipova885a2ed2021-03-05 20:00:52 +0200121 tcp_tests/tests/system/test_mcp_update.py::TestUpdateMcpCluster::test_update_galera \
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200122 tcp_tests/tests/system/test_mcp_update.py::TestUpdateMcpCluster::test_update_rabbit \
123 tcp_tests/tests/system/test_mcp_update.py::TestUpdateMcpCluster::test_update_stacklight \
124 tcp_tests/tests/system/test_mcp_update.py::TestUpdateMcpCluster::test_update_ceph \
125 \
Hanna Arhipovae47f38e2021-03-05 22:19:35 +0200126 tcp_tests/tests/system/test_cvp_pipelines.py::TestCvpPipelines::test_run_cvp_tempest \
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200127 tcp_tests/tests/system/test_cvp_pipelines.py::TestCvpPipelines::test_run_cvp_func_sanity \
128 tcp_tests/tests/system/test_cvp_pipelines.py::TestCvpPipelines::test_run_cvp_stacklight
129 test-opt-with-contrail: |-
130 --keep-duplicates --maxfail=1 \
131 tcp_tests/tests/system/test_mcp_update.py::TestUpdateMcpCluster::test_update_drivetrain \
132 tcp_tests/tests/system/test_upgrade_contrail.py::TestUpdateContrail \
133 tcp_tests/tests/system/test_mcp_update.py::TestOpenstackUpdate \
Hanna Arhipova885a2ed2021-03-05 20:00:52 +0200134 tcp_tests/tests/system/test_mcp_update.py::TestUpdateMcpCluster::test_update_galera \
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200135 tcp_tests/tests/system/test_mcp_update.py::TestUpdateMcpCluster::test_update_rabbit \
136 tcp_tests/tests/system/test_mcp_update.py::TestUpdateMcpCluster::test_update_stacklight \
137 tcp_tests/tests/system/test_mcp_update.py::TestUpdateMcpCluster::test_update_ceph \
138 \
Hanna Arhipovae47f38e2021-03-05 22:19:35 +0200139 tcp_tests/tests/system/test_cvp_pipelines.py::TestCvpPipelines::test_run_cvp_tempest \
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200140 tcp_tests/tests/system/test_cvp_pipelines.py::TestCvpPipelines::test_run_cvp_func_sanity \
141 tcp_tests/tests/system/test_cvp_pipelines.py::TestCvpPipelines::test_run_cvp_stacklight
142
143 test_scenario:
144 - mcp-update-pike-sl:
145 deployment: released-heat-cicd-pike-dvr-sl
146 disabled: true
147 run-test-opts: '{test-opt}'
Hanna Arhipovae92b66b2021-04-15 19:56:30 +0300148 display-name: MCP update (pike)
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200149
150 - mcp-update-queens-dvr-sl:
151 deployment: released-heat-cicd-queens-dvr-sl
152 disabled: true
153 run-test-opts: '{test-opt}'
Hanna Arhipovae92b66b2021-04-15 19:56:30 +0300154 display-name: MCP update (queens)
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200155
156 - mcp-update-pike-contrail-sl:
157 deployment: released-heat-cicd-pike-contrail41-sl
158 disabled: true
159 run-test-opts: '{test-opt-with-contrail}'
Hanna Arhipovae92b66b2021-04-15 19:56:30 +0300160 display-name: MCP update (pike + OC)
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200161
162 - mcp-update-queens-contrail-sl:
163 deployment: released-heat-cicd-queens-contrail41-sl
164 disabled: true
165 run-test-opts: '{test-opt-with-contrail}'
Hanna Arhipovae92b66b2021-04-15 19:56:30 +0300166 display-name: MCP update (queens + OC)
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200167
168 - os-update-pike-to-queens:
169 deployment: heat-cicd-pike-dvr-sl
170 run-test-opts: '-k TestUpdatePikeToQueens'
Hanna Arhipovae92b66b2021-04-15 19:56:30 +0300171 display-name: Update Pike -> Queens
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200172
173 - ceph-update-luminous-to-nautilus:
174 deployment: heat-cicd-pike-dvr-sl
175 disabled: true
Hanna Arhipova7f2a1752021-04-22 09:59:11 +0300176 run-test-opts: '-k TestCephLuminousUpgrade'
Hanna Arhipovae92b66b2021-04-15 19:56:30 +0300177 display-name: Update Ceph Luminous -> Nautilus
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200178
179 jobs:
180 - '{test_scenario}'
181
182###################### JOB TEMPLATE ###################
183- job-template:
184 name: '{test_scenario}'
Hanna Arhipovae92b66b2021-04-15 19:56:30 +0300185 display-name: '{display-name}'
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200186 project-type: pipeline
187 concurrent: false
188 disabled: '{disabled|false}'
189 quiet-period: 2
190 node: 'openstack_slave_{deployment}'
191 logrotate:
192 daysToKeep: 30
193 numToKeep: 60
194 artifactDaysToKeep: -1
195 artifactNumToKeep: -1
196 # Requires the Jenkins BuildResultTrigger Plugin
197 triggers:
198 - build-result:
199 cron: '* * * * *'
200 combine: true
201 groups:
202 - jobs:
203 - '{deployment}'
204 results:
205 - success
206
207 pipeline-scm:
208 lightweight-checkout: false
209 scm:
210 - git:
211 branches:
212 - FETCH_HEAD
213 refspec: ${{TCP_QA_REFS}}
214 url: https://gerrit.mcp.mirantis.com/mcp/tcp-qa.git
215 script-path: jobs/pipelines/run-test-scenarios.groovy
216
217 parameters:
218 - node:
219 name: NODE
220 allowed-slaves:
221 - 'openstack_slave_{deployment}'
222 - string:
223 default: '{deployment}'
224 description: 'Required: Fuel-devops environment name'
225 name: ENV_NAME
226 trim: 'false'
227 - string:
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200228 default: 'openstack_slave_{deployment}'
229 description: 'Required: Name of the jenkins slave to create the environment
230 To be set by the parent deployment job.'
231 name: PARENT_NODE_NAME
232 trim: 'false'
233 - string:
234 default: '/home/jenkins/workspace/workspace/{deployment}'
235 description: 'Required: Workspace on the jenkins slave to reuse for
236 the job To be set by the parent deployment job'
237 name: PARENT_WORKSPACE
238 trim: 'false'
239 - string:
Hanna Arhipovae92b66b2021-04-15 19:56:30 +0300240 default: '2019.2.0'
241 description: 'MCP version'
242 name: MCP_VERSION
243 trim: 'false'
244 - string:
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200245 default: ''
246 description: 'Completed steps to install components on the environment.
247 If tests require some additional components, it may be installed in
248 appropriate fixtures, so set the PASSED_STEPS correctly for the
249 testing environment.'
250 name: PASSED_STEPS
251 trim: 'false'
252 - string:
253 default: ''
254 description: 'Example: refs/changes/89/411189/36
255 (for now - only one reference allowed)'
256 name: TCP_QA_REFS
257 trim: 'false'
258 - text:
259 default: '{run-test-opts}'
260 description: |-
261 Pytest option -k or -m, with expression to select necessary tests.
262 Additional pytest options are allowed.
263 name: RUN_TEST_OPTS
264 trim: 'false'
265 - bool:
266 default: true
267 name: REPORT_TO_TESTRAIL
268
269