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