blob: 6b54a3ca01d18ad326bcf1776efd11e26ea3a9b0 [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
65 - backup-saltmaster-queens-dvr-sl:
66 run-test-opts: '-k TestBackupRestoreMaster'
67 deployment: heat-cicd-queens-dvr-sl
Hanna Arhipovae92b66b2021-04-15 19:56:30 +030068 display-name: Backup/Restore SaltMaster (queens)
Hanna Arhipova4759ae42021-01-11 12:48:14 +020069
70 - backup-saltmaster-pike-dvr-sl:
71 run-test-opts: '-k TestBackupRestoreMaster'
72 deployment: heat-cicd-pike-dvr-sl
Hanna Arhipovae92b66b2021-04-15 19:56:30 +030073 display-name: Backup/Restore SaltMaster (pike)
Hanna Arhipova4759ae42021-01-11 12:48:14 +020074
75 - backup-cassandra-queens-contrail-sl:
76 run-test-opts: '-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
80 jobs:
81 - '{test_scenario}'
82
83- job-group:
84 name: 'ceph-tests'
85 test_scenario:
86 - ceph_osd-queens-dvr-sl:
Hanna Arhipovae92b66b2021-04-15 19:56:30 +030087 run-test-opts: '-k TestCephOsd'
88 deployment: heat-cicd-queens-dvr-sl
89 display-name: Add/Remove OSD node
90 - ceph_cmn-queens-dvr-sl:
91 run-test-opts: '-k TestCephMon'
92 deployment: heat-cicd-queens-dvr-sl
93 display-name: Add/Remove CMN node
94 - ceph_mgr-queens-dvr-sl:
95 run-test-opts: '-k TestCephMgr'
96 deployment: heat-cicd-queens-dvr-sl
97 display-name: Add/Remove MGR node
Hanna Arhipova4759ae42021-01-11 12:48:14 +020098 jobs:
99 - '{test_scenario}'
100
101- job-group:
102 name: 'update-tests'
103 test-opt: |-
104 --keep-duplicates --maxfail=1 \
105 tcp_tests/tests/system/test_mcp_update.py::TestUpdateMcpCluster::test_update_drivetrain \
106 tcp_tests/tests/system/test_mcp_update.py::TestOpenstackUpdate \
Hanna Arhipova885a2ed2021-03-05 20:00:52 +0200107 tcp_tests/tests/system/test_mcp_update.py::TestUpdateMcpCluster::test_update_galera \
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200108 tcp_tests/tests/system/test_mcp_update.py::TestUpdateMcpCluster::test_update_rabbit \
109 tcp_tests/tests/system/test_mcp_update.py::TestUpdateMcpCluster::test_update_stacklight \
110 tcp_tests/tests/system/test_mcp_update.py::TestUpdateMcpCluster::test_update_ceph \
111 \
Hanna Arhipovae47f38e2021-03-05 22:19:35 +0200112 tcp_tests/tests/system/test_cvp_pipelines.py::TestCvpPipelines::test_run_cvp_tempest \
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200113 tcp_tests/tests/system/test_cvp_pipelines.py::TestCvpPipelines::test_run_cvp_func_sanity \
114 tcp_tests/tests/system/test_cvp_pipelines.py::TestCvpPipelines::test_run_cvp_stacklight
115 test-opt-with-contrail: |-
116 --keep-duplicates --maxfail=1 \
117 tcp_tests/tests/system/test_mcp_update.py::TestUpdateMcpCluster::test_update_drivetrain \
118 tcp_tests/tests/system/test_upgrade_contrail.py::TestUpdateContrail \
119 tcp_tests/tests/system/test_mcp_update.py::TestOpenstackUpdate \
Hanna Arhipova885a2ed2021-03-05 20:00:52 +0200120 tcp_tests/tests/system/test_mcp_update.py::TestUpdateMcpCluster::test_update_galera \
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200121 tcp_tests/tests/system/test_mcp_update.py::TestUpdateMcpCluster::test_update_rabbit \
122 tcp_tests/tests/system/test_mcp_update.py::TestUpdateMcpCluster::test_update_stacklight \
123 tcp_tests/tests/system/test_mcp_update.py::TestUpdateMcpCluster::test_update_ceph \
124 \
Hanna Arhipovae47f38e2021-03-05 22:19:35 +0200125 tcp_tests/tests/system/test_cvp_pipelines.py::TestCvpPipelines::test_run_cvp_tempest \
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200126 tcp_tests/tests/system/test_cvp_pipelines.py::TestCvpPipelines::test_run_cvp_func_sanity \
127 tcp_tests/tests/system/test_cvp_pipelines.py::TestCvpPipelines::test_run_cvp_stacklight
128
129 test_scenario:
130 - mcp-update-pike-sl:
131 deployment: released-heat-cicd-pike-dvr-sl
132 disabled: true
133 run-test-opts: '{test-opt}'
Hanna Arhipovae92b66b2021-04-15 19:56:30 +0300134 display-name: MCP update (pike)
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200135
136 - mcp-update-queens-dvr-sl:
137 deployment: released-heat-cicd-queens-dvr-sl
138 disabled: true
139 run-test-opts: '{test-opt}'
Hanna Arhipovae92b66b2021-04-15 19:56:30 +0300140 display-name: MCP update (queens)
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200141
142 - mcp-update-pike-contrail-sl:
143 deployment: released-heat-cicd-pike-contrail41-sl
144 disabled: true
145 run-test-opts: '{test-opt-with-contrail}'
Hanna Arhipovae92b66b2021-04-15 19:56:30 +0300146 display-name: MCP update (pike + OC)
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200147
148 - mcp-update-queens-contrail-sl:
149 deployment: released-heat-cicd-queens-contrail41-sl
150 disabled: true
151 run-test-opts: '{test-opt-with-contrail}'
Hanna Arhipovae92b66b2021-04-15 19:56:30 +0300152 display-name: MCP update (queens + OC)
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200153
154 - os-update-pike-to-queens:
155 deployment: heat-cicd-pike-dvr-sl
156 run-test-opts: '-k TestUpdatePikeToQueens'
Hanna Arhipovae92b66b2021-04-15 19:56:30 +0300157 display-name: Update Pike -> Queens
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200158
159 - ceph-update-luminous-to-nautilus:
160 deployment: heat-cicd-pike-dvr-sl
161 disabled: true
162 run-test-opts: '-k TestCephUpdate'
Hanna Arhipovae92b66b2021-04-15 19:56:30 +0300163 display-name: Update Ceph Luminous -> Nautilus
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200164
165 jobs:
166 - '{test_scenario}'
167
168###################### JOB TEMPLATE ###################
169- job-template:
170 name: '{test_scenario}'
Hanna Arhipovae92b66b2021-04-15 19:56:30 +0300171 display-name: '{display-name}'
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200172 project-type: pipeline
173 concurrent: false
174 disabled: '{disabled|false}'
175 quiet-period: 2
176 node: 'openstack_slave_{deployment}'
177 logrotate:
178 daysToKeep: 30
179 numToKeep: 60
180 artifactDaysToKeep: -1
181 artifactNumToKeep: -1
182 # Requires the Jenkins BuildResultTrigger Plugin
183 triggers:
184 - build-result:
185 cron: '* * * * *'
186 combine: true
187 groups:
188 - jobs:
189 - '{deployment}'
190 results:
191 - success
192
193 pipeline-scm:
194 lightweight-checkout: false
195 scm:
196 - git:
197 branches:
198 - FETCH_HEAD
199 refspec: ${{TCP_QA_REFS}}
200 url: https://gerrit.mcp.mirantis.com/mcp/tcp-qa.git
201 script-path: jobs/pipelines/run-test-scenarios.groovy
202
203 parameters:
204 - node:
205 name: NODE
206 allowed-slaves:
207 - 'openstack_slave_{deployment}'
208 - string:
209 default: '{deployment}'
210 description: 'Required: Fuel-devops environment name'
211 name: ENV_NAME
212 trim: 'false'
213 - string:
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200214 default: 'openstack_slave_{deployment}'
215 description: 'Required: Name of the jenkins slave to create the environment
216 To be set by the parent deployment job.'
217 name: PARENT_NODE_NAME
218 trim: 'false'
219 - string:
220 default: '/home/jenkins/workspace/workspace/{deployment}'
221 description: 'Required: Workspace on the jenkins slave to reuse for
222 the job To be set by the parent deployment job'
223 name: PARENT_WORKSPACE
224 trim: 'false'
225 - string:
Hanna Arhipovae92b66b2021-04-15 19:56:30 +0300226 default: '2019.2.0'
227 description: 'MCP version'
228 name: MCP_VERSION
229 trim: 'false'
230 - string:
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200231 default: ''
232 description: 'Completed steps to install components on the environment.
233 If tests require some additional components, it may be installed in
234 appropriate fixtures, so set the PASSED_STEPS correctly for the
235 testing environment.'
236 name: PASSED_STEPS
237 trim: 'false'
238 - string:
239 default: ''
240 description: 'Example: refs/changes/89/411189/36
241 (for now - only one reference allowed)'
242 name: TCP_QA_REFS
243 trim: 'false'
244 - text:
245 default: '{run-test-opts}'
246 description: |-
247 Pytest option -k or -m, with expression to select necessary tests.
248 Additional pytest options are allowed.
249 name: RUN_TEST_OPTS
250 trim: 'false'
251 - bool:
252 default: true
253 name: REPORT_TO_TESTRAIL
254
255