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