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