blob: f9d972ef87c029643d684d53a62511a6e128386d [file] [log] [blame]
rajat290fc826d2017-11-21 00:06:00 +05301- job:
Felipe Monteiro25949b82017-11-29 23:25:34 +00002 name: patrole-base
Felipe Monteiro097d94c2018-02-25 13:48:14 +00003 parent: devstack-tempest
Mykola Yakovlievd0671482018-07-23 12:13:02 -05004 description: |
Doug Hellmann4635c6a2018-09-08 22:52:43 -04005 Patrole base job for admin and member roles. This job executes RBAC tests
6 for all the "core" services that Tempest covers, excluding Swift.
Felipe Monteiro097d94c2018-02-25 13:48:14 +00007 required-projects:
8 - name: openstack/tempest
9 - name: openstack/patrole
rajat290fc826d2017-11-21 00:06:00 +053010 timeout: 7800
Felipe Monteiro097d94c2018-02-25 13:48:14 +000011 roles:
OpenDev Sysadminseedb0392019-04-19 19:33:57 +000012 - zuul: openstack/devstack
ghanshyamb6888232018-11-04 12:54:58 +000013 # Define common irrelevant files to use everywhere else
14 irrelevant-files: &patrole-irrelevant-files
rajat290fc826d2017-11-21 00:06:00 +053015 - ^(test-|)requirements.txt$
16 - ^.*\.rst$
17 - ^doc/.*
Felipe Monteirod1a87c52018-11-01 11:34:29 -040018 - ^etc/.*$
Felipe Monteiro825d7942018-11-13 23:40:45 -060019 - ^patrole_tempest_plugin/tests/unit/.*$
20 - ^patrole_tempest_plugin/hacking/.*$
rajat290fc826d2017-11-21 00:06:00 +053021 - ^releasenotes/.*
22 - ^setup.cfg$
Felipe Monteiro097d94c2018-02-25 13:48:14 +000023 vars:
ps39106b229a72019-07-10 21:54:44 -070024 tempest_plugins:
25 - patrole
Felipe Monteiro097d94c2018-02-25 13:48:14 +000026 devstack_plugins:
OpenDev Sysadminseedb0392019-04-19 19:33:57 +000027 patrole: https://opendev.org/openstack/patrole.git
Felipe Monteiro097d94c2018-02-25 13:48:14 +000028 devstack_services:
29 tempest: true
30 neutron: true
Mykola Yakovliev04b26282018-07-23 12:13:02 -050031 neutron-trunk: true
Felipe Monteiro097d94c2018-02-25 13:48:14 +000032 tempest_concurrency: 2
33 tempest_test_regex: (?!.*\[.*\bslow\b.*\])(^patrole_tempest_plugin\.tests\.api)
Felipe Monteiro0d3c7432018-10-28 02:14:22 +000034 tox_envlist: all
35 tox_extra_args: --sitepackages
rajat290fc826d2017-11-21 00:06:00 +053036
37- job:
Felipe Monteiro25949b82017-11-29 23:25:34 +000038 name: patrole-base-multinode
Felipe Monteiro318fa3b2018-06-19 16:53:33 -040039 parent: tempest-multinode-full
40 description: |-
41 Patrole base job for multinode and "slow" tests where "slow" tests include:
42
43 * Tests that take more than ~30 seconds to run.
44 * Tests that experience spurious failures related to servers, volumes,
45 backups and similar resources failing to build.
rajat290fc826d2017-11-21 00:06:00 +053046 timeout: 7800
Felipe Monteiro318fa3b2018-06-19 16:53:33 -040047 branches:
48 - master
49 required-projects:
OpenDev Sysadminseedb0392019-04-19 19:33:57 +000050 - openstack/devstack-gate
Felipe Monteiro318fa3b2018-06-19 16:53:33 -040051 - openstack/tempest
52 - openstack/patrole
ghanshyamb6888232018-11-04 12:54:58 +000053 irrelevant-files: *patrole-irrelevant-files
Felipe Monteiro318fa3b2018-06-19 16:53:33 -040054 vars:
ps39106b229a72019-07-10 21:54:44 -070055 tempest_plugins:
56 - patrole
Felipe Monteiro318fa3b2018-06-19 16:53:33 -040057 devstack_plugins:
OpenDev Sysadminseedb0392019-04-19 19:33:57 +000058 patrole: https://opendev.org/openstack/patrole.git
Felipe Monteiro318fa3b2018-06-19 16:53:33 -040059 devstack_services:
60 tempest: true
61 neutron: true
62 tempest_concurrency: 1
63 tempest_test_regex: (?=.*\[.*\bslow\b.*\])(^patrole_tempest_plugin\.tests\.api)
Felipe Monteiro0d3c7432018-10-28 02:14:22 +000064 tox_envlist: all
65 tox_extra_args: --sitepackages
rajat290fc826d2017-11-21 00:06:00 +053066
67- job:
Hidekazu Nakamura211d4f92018-01-09 10:29:17 +090068 name: patrole-admin
Felipe Monteiro25949b82017-11-29 23:25:34 +000069 parent: patrole-base
Felipe Monteiro097d94c2018-02-25 13:48:14 +000070 description: Patrole job for admin role.
71 vars:
72 devstack_localrc:
Mykola Yakovlieve0f35502018-09-26 18:26:57 -050073 RBAC_TEST_ROLES: admin
rajat290fc826d2017-11-21 00:06:00 +053074
75- job:
Hidekazu Nakamura211d4f92018-01-09 10:29:17 +090076 name: patrole-member
Felipe Monteiro25949b82017-11-29 23:25:34 +000077 parent: patrole-base
Felipe Monteiro2fc29292018-06-15 18:26:27 -040078 description: Patrole job for member role.
Felipe Monteiro4c3ae9b2018-02-25 18:33:32 +000079 # This currently works from stable/pike onward.
ghanshyama78dcae2018-11-22 08:50:47 +000080 branches: ^(?!stable/ocata).*$
Felipe Monteiro097d94c2018-02-25 13:48:14 +000081 vars:
82 devstack_localrc:
Mykola Yakovlieve0f35502018-09-26 18:26:57 -050083 RBAC_TEST_ROLES: member
rajat290fc826d2017-11-21 00:06:00 +053084
85- job:
Sergey Vilgelm11e0c662019-01-25 16:05:56 -060086 name: patrole-reader
87 parent: patrole-base
88 description: Patrole job for reader role.
89 # This currently works from stable/stein onward.
90 branches: ^(?!stable/(ocata|pike|queens|rocky)).*$
91 voting: false
92 vars:
93 devstack_localrc:
94 RBAC_TEST_ROLES: reader
95
96- job:
ghanshyamb3606a02019-03-27 22:11:45 +000097 name: patrole-member-stein
98 parent: patrole-member
99 override-checkout: stable/stein
100
101- job:
Felipe Monteiro22bb9b32018-08-28 21:17:58 -0400102 name: patrole-member-rocky
ghanshyamf5c0dfb2018-11-22 08:32:49 +0000103 nodeset: openstack-single-node-xenial
Felipe Monteiro22bb9b32018-08-28 21:17:58 -0400104 parent: patrole-member
105 override-checkout: stable/rocky
ps39106b229a72019-07-10 21:54:44 -0700106 vars:
107 devstack_localrc:
108 TEMPEST_PLUGINS: /opt/stack/patrole
Felipe Monteiro22bb9b32018-08-28 21:17:58 -0400109
110- job:
Felipe Monteiro4c3ae9b2018-02-25 18:33:32 +0000111 name: patrole-member-queens
ghanshyamf5c0dfb2018-11-22 08:32:49 +0000112 nodeset: openstack-single-node-xenial
Felipe Monteiro4c3ae9b2018-02-25 18:33:32 +0000113 parent: patrole-member
114 override-checkout: stable/queens
ps39106b229a72019-07-10 21:54:44 -0700115 vars:
116 devstack_localrc:
117 TEMPEST_PLUGINS: /opt/stack/patrole
Felipe Monteiro4c3ae9b2018-02-25 18:33:32 +0000118
119- job:
120 name: patrole-member-pike
ghanshyamf5c0dfb2018-11-22 08:32:49 +0000121 nodeset: openstack-single-node-xenial
Felipe Monteiro4c3ae9b2018-02-25 18:33:32 +0000122 parent: patrole-member
123 override-checkout: stable/pike
ps39106b229a72019-07-10 21:54:44 -0700124 vars:
125 devstack_localrc:
126 TEMPEST_PLUGINS: /opt/stack/patrole
Felipe Monteiro4c3ae9b2018-02-25 18:33:32 +0000127
128- job:
Hidekazu Nakamura211d4f92018-01-09 10:29:17 +0900129 name: patrole-multinode-admin
Felipe Monteiro25949b82017-11-29 23:25:34 +0000130 parent: patrole-base-multinode
rajat290fc826d2017-11-21 00:06:00 +0530131 voting: false
Felipe Monteiro318fa3b2018-06-19 16:53:33 -0400132 vars:
133 devstack_localrc:
Mykola Yakovlieve0f35502018-09-26 18:26:57 -0500134 RBAC_TEST_ROLES: admin
rajat290fc826d2017-11-21 00:06:00 +0530135
136- job:
Hidekazu Nakamura211d4f92018-01-09 10:29:17 +0900137 name: patrole-multinode-member
Felipe Monteiro25949b82017-11-29 23:25:34 +0000138 parent: patrole-base-multinode
rajat290fc826d2017-11-21 00:06:00 +0530139 voting: false
Felipe Monteiro318fa3b2018-06-19 16:53:33 -0400140 vars:
141 devstack_localrc:
Mykola Yakovlieve0f35502018-09-26 18:26:57 -0500142 RBAC_TEST_ROLES: member
rajat290fc826d2017-11-21 00:06:00 +0530143
144- job:
Hidekazu Nakamura211d4f92018-01-09 10:29:17 +0900145 name: patrole-py35-member
Felipe Monteiro25949b82017-11-29 23:25:34 +0000146 parent: patrole-base
Felipe Monteiro2fc29292018-06-15 18:26:27 -0400147 description: Patrole py35 job for member role.
Felipe Monteiro097d94c2018-02-25 13:48:14 +0000148 vars:
149 devstack_localrc:
Felipe Monteiro2fc29292018-06-15 18:26:27 -0400150 # Use member for py35 because arguably negative testing is more
Felipe Monteiro097d94c2018-02-25 13:48:14 +0000151 # important than admin, which is already covered by patrole-admin job.
Mykola Yakovlieve0f35502018-09-26 18:26:57 -0500152 RBAC_TEST_ROLES: member
Doug Hellmann8669a512018-03-22 17:42:03 -0400153 USE_PYTHON3: true
Felipe Monteiro097d94c2018-02-25 13:48:14 +0000154 devstack_services:
155 s-account: false
156 s-container: false
157 s-object: false
158 s-proxy: false
159 # Without Swift, c-bak cannot run (in the gate at least).
160 c-bak: false
rajat290fc826d2017-11-21 00:06:00 +0530161
Mykola Yakovlievd0671482018-07-23 12:13:02 -0500162- job:
Felipe Monteirobbbdd932018-10-31 23:28:39 -0400163 name: patrole-extension-base
Mykola Yakovlievd0671482018-07-23 12:13:02 -0500164 parent: patrole-base
165 description: |
Felipe Monteirobbbdd932018-10-31 23:28:39 -0400166 Patrole plugin job for admin and member roles which runs RBAC tests for
167 neutron-tempest-plugin APIs (if the plugin is installed).
168
169 Covers Neutron extension functionality only. Should not be used for
170 supporting Neutron plugins like fwaas.
Mykola Yakovlievd0671482018-07-23 12:13:02 -0500171 required-projects:
172 - name: openstack/tempest
173 - name: openstack/patrole
174 - name: openstack/neutron-tempest-plugin
175 vars:
ps39106b229a72019-07-10 21:54:44 -0700176 tempest_plugins:
177 - patrole
178 - neutron-tempest-plugin
Mykola Yakovlievd0671482018-07-23 12:13:02 -0500179 devstack_plugins:
OpenDev Sysadminseedb0392019-04-19 19:33:57 +0000180 neutron: https://opendev.org/openstack/neutron.git
181 patrole: https://opendev.org/openstack/patrole.git
182 neutron-tempest-plugin: https://opendev.org/openstack/neutron-tempest-plugin.git
Mykola Yakovlievd0671482018-07-23 12:13:02 -0500183 devstack_services:
184 tempest: true
185 neutron: true
186 neutron-segments: true
Mykola Yakovliev56bb7312018-08-16 18:34:10 -0500187 neutron-qos: true
Felipe Monteirobbbdd932018-10-31 23:28:39 -0400188 tempest_test_regex: (?=.*ExtRbacTest)(^patrole_tempest_plugin\.tests\.api)
Mykola Yakovlievd0671482018-07-23 12:13:02 -0500189
190- job:
Felipe Monteirobbbdd932018-10-31 23:28:39 -0400191 name: patrole-extension-admin
192 parent: patrole-extension-base
Mykola Yakovlievd0671482018-07-23 12:13:02 -0500193 voting: false
194 vars:
195 devstack_localrc:
Mykola Yakovlieve0f35502018-09-26 18:26:57 -0500196 RBAC_TEST_ROLES: admin
Sergey Vilgelm11e0c662019-01-25 16:05:56 -0600197
198- job:
199 name: patrole-extension-member
200 parent: patrole-extension-base
201 voting: false
202 vars:
203 devstack_localrc:
204 RBAC_TEST_ROLES: member
Mykola Yakovlievd0671482018-07-23 12:13:02 -0500205
rajat290fc826d2017-11-21 00:06:00 +0530206- project:
Felipe Monteirof4cb74c2018-08-19 17:18:56 +0100207 templates:
Andreas Jaegera3c15da2018-09-09 06:39:31 +0200208 - openstack-cover-jobs
209 - openstack-lower-constraints-jobs
Corey Bryant6f15d302019-07-05 15:55:31 -0400210 - openstack-python3-train-jobs
Doug Hellmann4635c6a2018-09-08 22:52:43 -0400211 - openstack-python-jobs
Doug Hellmann4635c6a2018-09-08 22:52:43 -0400212 - check-requirements
Doug Hellmannd720bad2018-09-08 22:54:03 -0400213 - publish-openstack-docs-pti
214 - release-notes-jobs-python3
rajat290fc826d2017-11-21 00:06:00 +0530215 check:
216 jobs:
Hidekazu Nakamura211d4f92018-01-09 10:29:17 +0900217 - patrole-admin
218 - patrole-member
Sergey Vilgelm11e0c662019-01-25 16:05:56 -0600219 - patrole-reader
ghanshyamb3606a02019-03-27 22:11:45 +0000220 - patrole-member-stein
Felipe Monteiro22bb9b32018-08-28 21:17:58 -0400221 - patrole-member-rocky
Felipe Monteiro4c3ae9b2018-02-25 18:33:32 +0000222 - patrole-member-queens
223 - patrole-member-pike
Hidekazu Nakamura211d4f92018-01-09 10:29:17 +0900224 - patrole-multinode-admin
225 - patrole-multinode-member
Felipe Monteirobbbdd932018-10-31 23:28:39 -0400226 - patrole-extension-admin
227 - patrole-extension-member
rajat290fc826d2017-11-21 00:06:00 +0530228 gate:
229 jobs:
Hidekazu Nakamura211d4f92018-01-09 10:29:17 +0900230 - patrole-admin
231 - patrole-member
Felipe Monteiro1bee1422018-08-28 21:19:32 -0400232 periodic-stable:
233 jobs:
ghanshyamb3606a02019-03-27 22:11:45 +0000234 - patrole-member-stein
Felipe Monteiro1bee1422018-08-28 21:19:32 -0400235 - patrole-member-rocky
236 - patrole-member-queens
237 - patrole-member-pike