Hanna Arhipova | 4759ae4 | 2021-01-11 12:48:14 +0200 | [diff] [blame] | 1 | --- |
| 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 Arhipova | 42b0623 | 2021-04-22 09:29:44 +0300 | [diff] [blame] | 65 | - backup-saltmaster: |
Hanna Arhipova | 6adb16d | 2021-05-18 14:24:40 +0300 | [diff] [blame] | 66 | run-test-opts: '--maxfail=1 -k TestBackupRestoreMaster and not maas' |
Hanna Arhipova | 4759ae4 | 2021-01-11 12:48:14 +0200 | [diff] [blame] | 67 | deployment: heat-cicd-queens-dvr-sl |
Hanna Arhipova | 42b0623 | 2021-04-22 09:29:44 +0300 | [diff] [blame] | 68 | display-name: Backup/Restore SaltMaster |
Hanna Arhipova | 4759ae4 | 2021-01-11 12:48:14 +0200 | [diff] [blame] | 69 | |
Hanna Arhipova | 42b0623 | 2021-04-22 09:29:44 +0300 | [diff] [blame] | 70 | - backup-saltmaster-with-maas: |
Hanna Arhipova | 6adb16d | 2021-05-18 14:24:40 +0300 | [diff] [blame] | 71 | run-test-opts: '--maxfail=1 -k TestBackupRestoreMaster and maas' |
Hanna Arhipova | 42b0623 | 2021-04-22 09:29:44 +0300 | [diff] [blame] | 72 | deployment: bm-cicd-queens-ovs-maas |
| 73 | display-name: Backup/Restore SaltMaster (with MAAS) |
Hanna Arhipova | 4759ae4 | 2021-01-11 12:48:14 +0200 | [diff] [blame] | 74 | |
| 75 | - backup-cassandra-queens-contrail-sl: |
Hanna Arhipova | 6adb16d | 2021-05-18 14:24:40 +0300 | [diff] [blame] | 76 | run-test-opts: '--maxfail=1 -k TestBackupRestoreCassandra' |
Hanna Arhipova | 885a2ed | 2021-03-05 20:00:52 +0200 | [diff] [blame] | 77 | deployment: heat-cicd-queens-contrail41-sl |
Hanna Arhipova | e92b66b | 2021-04-15 19:56:30 +0300 | [diff] [blame] | 78 | display-name: Backup/restore Cassandra |
Hanna Arhipova | 4759ae4 | 2021-01-11 12:48:14 +0200 | [diff] [blame] | 79 | |
Hanna Arhipova | 42b0623 | 2021-04-22 09:29:44 +0300 | [diff] [blame] | 80 | - backup-galera-queens-sl: |
Hanna Arhipova | 6adb16d | 2021-05-18 14:24:40 +0300 | [diff] [blame] | 81 | run-test-opts: '--maxfail=1 -k TestBackupRestoreGalera' |
Hanna Arhipova | 42b0623 | 2021-04-22 09:29:44 +0300 | [diff] [blame] | 82 | deployment: heat-cicd-queens-dvr-sl |
| 83 | display-name: Backup/restore Galera |
| 84 | |
| 85 | - backup-zookeeper-queens-sl: |
Hanna Arhipova | 6adb16d | 2021-05-18 14:24:40 +0300 | [diff] [blame] | 86 | run-test-opts: '--maxfail=1 -k TestBackupRestoreZooKeeper' |
Hanna Arhipova | 7f2a175 | 2021-04-22 09:59:11 +0300 | [diff] [blame] | 87 | deployment: heat-cicd-queens-contrail41-sl |
Hanna Arhipova | 42b0623 | 2021-04-22 09:29:44 +0300 | [diff] [blame] | 88 | display-name: Backup/restore Zookeeper |
| 89 | |
Hanna Arhipova | 4759ae4 | 2021-01-11 12:48:14 +0200 | [diff] [blame] | 90 | jobs: |
| 91 | - '{test_scenario}' |
PGlazov | 3704e4b | 2021-06-23 15:10:04 +0400 | [diff] [blame] | 92 | logrotate: |
| 93 | daysToKeep: 365 |
Hanna Arhipova | 4759ae4 | 2021-01-11 12:48:14 +0200 | [diff] [blame] | 94 | |
| 95 | - job-group: |
| 96 | name: 'ceph-tests' |
| 97 | test_scenario: |
| 98 | - ceph_osd-queens-dvr-sl: |
Hanna Arhipova | 6adb16d | 2021-05-18 14:24:40 +0300 | [diff] [blame] | 99 | run-test-opts: '--maxfail=1 -k TestCephOsd' |
Hanna Arhipova | e92b66b | 2021-04-15 19:56:30 +0300 | [diff] [blame] | 100 | deployment: heat-cicd-queens-dvr-sl |
| 101 | display-name: Add/Remove OSD node |
| 102 | - ceph_cmn-queens-dvr-sl: |
Hanna Arhipova | 6adb16d | 2021-05-18 14:24:40 +0300 | [diff] [blame] | 103 | run-test-opts: '--maxfail=1 -k TestCephMon' |
Hanna Arhipova | e92b66b | 2021-04-15 19:56:30 +0300 | [diff] [blame] | 104 | deployment: heat-cicd-queens-dvr-sl |
| 105 | display-name: Add/Remove CMN node |
| 106 | - ceph_mgr-queens-dvr-sl: |
Hanna Arhipova | 6adb16d | 2021-05-18 14:24:40 +0300 | [diff] [blame] | 107 | 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 Arhipova | e92b66b | 2021-04-15 19:56:30 +0300 | [diff] [blame] | 112 | deployment: heat-cicd-queens-dvr-sl |
PGlazov | 276d88f | 2021-07-06 15:12:16 +0400 | [diff] [blame^] | 113 | display-name: Add/Remove RGW node |
Hanna Arhipova | 4759ae4 | 2021-01-11 12:48:14 +0200 | [diff] [blame] | 114 | jobs: |
| 115 | - '{test_scenario}' |
PGlazov | 3704e4b | 2021-06-23 15:10:04 +0400 | [diff] [blame] | 116 | logrotate: |
| 117 | daysToKeep: 365 |
Hanna Arhipova | 4759ae4 | 2021-01-11 12:48:14 +0200 | [diff] [blame] | 118 | |
| 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 Arhipova | 885a2ed | 2021-03-05 20:00:52 +0200 | [diff] [blame] | 125 | tcp_tests/tests/system/test_mcp_update.py::TestUpdateMcpCluster::test_update_galera \ |
Hanna Arhipova | 4759ae4 | 2021-01-11 12:48:14 +0200 | [diff] [blame] | 126 | 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 Arhipova | e47f38e | 2021-03-05 22:19:35 +0200 | [diff] [blame] | 130 | tcp_tests/tests/system/test_cvp_pipelines.py::TestCvpPipelines::test_run_cvp_tempest \ |
Hanna Arhipova | 4759ae4 | 2021-01-11 12:48:14 +0200 | [diff] [blame] | 131 | 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 Arhipova | 885a2ed | 2021-03-05 20:00:52 +0200 | [diff] [blame] | 138 | tcp_tests/tests/system/test_mcp_update.py::TestUpdateMcpCluster::test_update_galera \ |
Hanna Arhipova | 4759ae4 | 2021-01-11 12:48:14 +0200 | [diff] [blame] | 139 | 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 Arhipova | e47f38e | 2021-03-05 22:19:35 +0200 | [diff] [blame] | 143 | tcp_tests/tests/system/test_cvp_pipelines.py::TestCvpPipelines::test_run_cvp_tempest \ |
Hanna Arhipova | 4759ae4 | 2021-01-11 12:48:14 +0200 | [diff] [blame] | 144 | 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 |
| 146 | |
| 147 | test_scenario: |
PGlazov | 3704e4b | 2021-06-23 15:10:04 +0400 | [diff] [blame] | 148 | - mcp-update-pike-dvr-sl: |
Hanna Arhipova | 4759ae4 | 2021-01-11 12:48:14 +0200 | [diff] [blame] | 149 | deployment: released-heat-cicd-pike-dvr-sl |
| 150 | disabled: true |
| 151 | run-test-opts: '{test-opt}' |
Hanna Arhipova | e92b66b | 2021-04-15 19:56:30 +0300 | [diff] [blame] | 152 | display-name: MCP update (pike) |
Hanna Arhipova | 4759ae4 | 2021-01-11 12:48:14 +0200 | [diff] [blame] | 153 | |
| 154 | - mcp-update-queens-dvr-sl: |
| 155 | deployment: released-heat-cicd-queens-dvr-sl |
| 156 | disabled: true |
| 157 | run-test-opts: '{test-opt}' |
Hanna Arhipova | e92b66b | 2021-04-15 19:56:30 +0300 | [diff] [blame] | 158 | display-name: MCP update (queens) |
Hanna Arhipova | 4759ae4 | 2021-01-11 12:48:14 +0200 | [diff] [blame] | 159 | |
| 160 | - mcp-update-pike-contrail-sl: |
| 161 | deployment: released-heat-cicd-pike-contrail41-sl |
| 162 | disabled: true |
| 163 | run-test-opts: '{test-opt-with-contrail}' |
Hanna Arhipova | e92b66b | 2021-04-15 19:56:30 +0300 | [diff] [blame] | 164 | display-name: MCP update (pike + OC) |
Hanna Arhipova | 4759ae4 | 2021-01-11 12:48:14 +0200 | [diff] [blame] | 165 | |
| 166 | - mcp-update-queens-contrail-sl: |
| 167 | deployment: released-heat-cicd-queens-contrail41-sl |
| 168 | disabled: true |
| 169 | run-test-opts: '{test-opt-with-contrail}' |
Hanna Arhipova | e92b66b | 2021-04-15 19:56:30 +0300 | [diff] [blame] | 170 | display-name: MCP update (queens + OC) |
Hanna Arhipova | 4759ae4 | 2021-01-11 12:48:14 +0200 | [diff] [blame] | 171 | |
| 172 | - os-update-pike-to-queens: |
| 173 | deployment: heat-cicd-pike-dvr-sl |
| 174 | run-test-opts: '-k TestUpdatePikeToQueens' |
Hanna Arhipova | e92b66b | 2021-04-15 19:56:30 +0300 | [diff] [blame] | 175 | display-name: Update Pike -> Queens |
Hanna Arhipova | 4759ae4 | 2021-01-11 12:48:14 +0200 | [diff] [blame] | 176 | |
| 177 | - ceph-update-luminous-to-nautilus: |
| 178 | deployment: heat-cicd-pike-dvr-sl |
| 179 | disabled: true |
Hanna Arhipova | 7f2a175 | 2021-04-22 09:59:11 +0300 | [diff] [blame] | 180 | run-test-opts: '-k TestCephLuminousUpgrade' |
Hanna Arhipova | e92b66b | 2021-04-15 19:56:30 +0300 | [diff] [blame] | 181 | display-name: Update Ceph Luminous -> Nautilus |
Hanna Arhipova | 4759ae4 | 2021-01-11 12:48:14 +0200 | [diff] [blame] | 182 | |
| 183 | jobs: |
| 184 | - '{test_scenario}' |
PGlazov | 3704e4b | 2021-06-23 15:10:04 +0400 | [diff] [blame] | 185 | logrotate: |
| 186 | daysToKeep: 365 |
Hanna Arhipova | 4759ae4 | 2021-01-11 12:48:14 +0200 | [diff] [blame] | 187 | |
| 188 | ###################### JOB TEMPLATE ################### |
| 189 | - job-template: |
| 190 | name: '{test_scenario}' |
Hanna Arhipova | e92b66b | 2021-04-15 19:56:30 +0300 | [diff] [blame] | 191 | display-name: '{display-name}' |
Hanna Arhipova | 4759ae4 | 2021-01-11 12:48:14 +0200 | [diff] [blame] | 192 | project-type: pipeline |
| 193 | concurrent: false |
| 194 | disabled: '{disabled|false}' |
| 195 | quiet-period: 2 |
| 196 | node: 'openstack_slave_{deployment}' |
| 197 | logrotate: |
| 198 | daysToKeep: 30 |
| 199 | numToKeep: 60 |
| 200 | artifactDaysToKeep: -1 |
| 201 | artifactNumToKeep: -1 |
| 202 | # Requires the Jenkins BuildResultTrigger Plugin |
| 203 | triggers: |
| 204 | - build-result: |
| 205 | cron: '* * * * *' |
| 206 | combine: true |
| 207 | groups: |
| 208 | - jobs: |
| 209 | - '{deployment}' |
| 210 | results: |
| 211 | - success |
| 212 | |
| 213 | pipeline-scm: |
| 214 | lightweight-checkout: false |
| 215 | scm: |
| 216 | - git: |
| 217 | branches: |
| 218 | - FETCH_HEAD |
| 219 | refspec: ${{TCP_QA_REFS}} |
| 220 | url: https://gerrit.mcp.mirantis.com/mcp/tcp-qa.git |
| 221 | script-path: jobs/pipelines/run-test-scenarios.groovy |
| 222 | |
| 223 | parameters: |
| 224 | - node: |
| 225 | name: NODE |
| 226 | allowed-slaves: |
| 227 | - 'openstack_slave_{deployment}' |
| 228 | - string: |
| 229 | default: '{deployment}' |
| 230 | description: 'Required: Fuel-devops environment name' |
| 231 | name: ENV_NAME |
| 232 | trim: 'false' |
| 233 | - string: |
Hanna Arhipova | 4759ae4 | 2021-01-11 12:48:14 +0200 | [diff] [blame] | 234 | default: 'openstack_slave_{deployment}' |
| 235 | description: 'Required: Name of the jenkins slave to create the environment |
| 236 | To be set by the parent deployment job.' |
| 237 | name: PARENT_NODE_NAME |
| 238 | trim: 'false' |
| 239 | - string: |
| 240 | default: '/home/jenkins/workspace/workspace/{deployment}' |
| 241 | description: 'Required: Workspace on the jenkins slave to reuse for |
| 242 | the job To be set by the parent deployment job' |
| 243 | name: PARENT_WORKSPACE |
| 244 | trim: 'false' |
| 245 | - string: |
Hanna Arhipova | e92b66b | 2021-04-15 19:56:30 +0300 | [diff] [blame] | 246 | default: '2019.2.0' |
| 247 | description: 'MCP version' |
| 248 | name: MCP_VERSION |
| 249 | trim: 'false' |
| 250 | - string: |
Hanna Arhipova | 4759ae4 | 2021-01-11 12:48:14 +0200 | [diff] [blame] | 251 | default: '' |
| 252 | description: 'Completed steps to install components on the environment. |
| 253 | If tests require some additional components, it may be installed in |
| 254 | appropriate fixtures, so set the PASSED_STEPS correctly for the |
| 255 | testing environment.' |
| 256 | name: PASSED_STEPS |
| 257 | trim: 'false' |
| 258 | - string: |
| 259 | default: '' |
| 260 | description: 'Example: refs/changes/89/411189/36 |
| 261 | (for now - only one reference allowed)' |
| 262 | name: TCP_QA_REFS |
| 263 | trim: 'false' |
| 264 | - text: |
| 265 | default: '{run-test-opts}' |
| 266 | description: |- |
| 267 | Pytest option -k or -m, with expression to select necessary tests. |
| 268 | Additional pytest options are allowed. |
| 269 | name: RUN_TEST_OPTS |
| 270 | trim: 'false' |
| 271 | - bool: |
| 272 | default: true |
| 273 | name: REPORT_TO_TESTRAIL |
| 274 | |
| 275 | |