blob: 01f3f60dc0485cc9831053cc172c810491588676 [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 Schveninger8e3b0322020-08-15 19:34:46 -05005 Patrole base job for admin,member and reader roles. This job executes RBAC tests
Doug Hellmann4635c6a2018-09-08 22:52:43 -04006 for all the "core" services that Tempest covers, excluding Swift.
Felipe Monteiro097d94c2018-02-25 13:48:14 +00007 required-projects:
Doug Schveninger8e3b0322020-08-15 19:34:46 -05008 - name: opendev.org/openstack/tempest
9 - name: opendev.org/openstack/patrole
rajat290fc826d2017-11-21 00:06:00 +053010 timeout: 7800
Felipe Monteiro097d94c2018-02-25 13:48:14 +000011 roles:
Doug Schveninger8e3b0322020-08-15 19:34:46 -050012 - zuul: opendev.org/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_test_regex: (?!.*\[.*\bslow\b.*\])(^patrole_tempest_plugin\.tests\.api)
Doug Schveningerff2fba22020-08-24 18:52:37 -050033 # run the tempest all tox environment target with patrole regex
Felipe Monteiro0d3c7432018-10-28 02:14:22 +000034 tox_envlist: all
Doug Schveningerff2fba22020-08-24 18:52:37 -050035 # allows job to use the tempest version installed with devstack instead of pypi
36 # according to the requirements.txt
Felipe Monteiro0d3c7432018-10-28 02:14:22 +000037 tox_extra_args: --sitepackages
rajat290fc826d2017-11-21 00:06:00 +053038
39- job:
Felipe Monteiro25949b82017-11-29 23:25:34 +000040 name: patrole-base-multinode
Ghanshyam Mann51368ef2020-02-03 13:19:03 -060041 parent: tempest-multinode-full-py3
Felipe Monteiro318fa3b2018-06-19 16:53:33 -040042 description: |-
43 Patrole base job for multinode and "slow" tests where "slow" tests include:
44
45 * Tests that take more than ~30 seconds to run.
46 * Tests that experience spurious failures related to servers, volumes,
47 backups and similar resources failing to build.
rajat290fc826d2017-11-21 00:06:00 +053048 timeout: 7800
Felipe Monteiro318fa3b2018-06-19 16:53:33 -040049 branches:
50 - master
51 required-projects:
Doug Schveninger8e3b0322020-08-15 19:34:46 -050052 - opendev.org/openstack/devstack-gate
53 - opendev.org/openstack/tempest
54 - opendev.org/openstack/patrole
ghanshyamb6888232018-11-04 12:54:58 +000055 irrelevant-files: *patrole-irrelevant-files
Felipe Monteiro318fa3b2018-06-19 16:53:33 -040056 vars:
ps39106b229a72019-07-10 21:54:44 -070057 tempest_plugins:
58 - patrole
Felipe Monteiro318fa3b2018-06-19 16:53:33 -040059 devstack_plugins:
OpenDev Sysadminseedb0392019-04-19 19:33:57 +000060 patrole: https://opendev.org/openstack/patrole.git
Felipe Monteiro318fa3b2018-06-19 16:53:33 -040061 devstack_services:
62 tempest: true
63 neutron: true
64 tempest_concurrency: 1
65 tempest_test_regex: (?=.*\[.*\bslow\b.*\])(^patrole_tempest_plugin\.tests\.api)
Felipe Monteiro0d3c7432018-10-28 02:14:22 +000066 tox_envlist: all
67 tox_extra_args: --sitepackages
rajat290fc826d2017-11-21 00:06:00 +053068
69- job:
Hidekazu Nakamura211d4f92018-01-09 10:29:17 +090070 name: patrole-admin
Felipe Monteiro25949b82017-11-29 23:25:34 +000071 parent: patrole-base
Felipe Monteiro097d94c2018-02-25 13:48:14 +000072 description: Patrole job for admin role.
73 vars:
74 devstack_localrc:
Mykola Yakovlieve0f35502018-09-26 18:26:57 -050075 RBAC_TEST_ROLES: admin
Ghanshyam Mann8cac1332021-07-27 10:56:29 -050076 # https://storyboard.openstack.org/#!/story/2009048
77 tempest_exclude_regex: patrole_tempest_plugin.tests.api.volume.test_volume_actions_rbac.VolumesActionsV3RbacTest.test_force_detach_volume_from_instance
rajat290fc826d2017-11-21 00:06:00 +053078
79- job:
Hidekazu Nakamura211d4f92018-01-09 10:29:17 +090080 name: patrole-member
Felipe Monteiro25949b82017-11-29 23:25:34 +000081 parent: patrole-base
Felipe Monteiro2fc29292018-06-15 18:26:27 -040082 description: Patrole job for member role.
Felipe Monteiro4c3ae9b2018-02-25 18:33:32 +000083 # This currently works from stable/pike onward.
ghanshyama78dcae2018-11-22 08:50:47 +000084 branches: ^(?!stable/ocata).*$
Felipe Monteiro097d94c2018-02-25 13:48:14 +000085 vars:
86 devstack_localrc:
Mykola Yakovlieve0f35502018-09-26 18:26:57 -050087 RBAC_TEST_ROLES: member
Ghanshyam Mann8cac1332021-07-27 10:56:29 -050088 # https://storyboard.openstack.org/#!/story/2009216
89 tempest_exclude_regex: patrole_tempest_plugin.tests.api.volume.test_volume_types_extra_specs_rbac.VolumeTypesExtraSpecsRbacTest.test_show_volume_type_extra_specs
rajat290fc826d2017-11-21 00:06:00 +053090
91- job:
Sergey Vilgelm11e0c662019-01-25 16:05:56 -060092 name: patrole-reader
93 parent: patrole-base
94 description: Patrole job for reader role.
95 # This currently works from stable/stein onward.
96 branches: ^(?!stable/(ocata|pike|queens|rocky)).*$
Sergey Vilgelm11e0c662019-01-25 16:05:56 -060097 vars:
98 devstack_localrc:
99 RBAC_TEST_ROLES: reader
Ghanshyam Mann8cac1332021-07-27 10:56:29 -0500100 # https://storyboard.openstack.org/#!/story/2009216
101 tempest_exclude_regex: patrole_tempest_plugin.tests.api.volume.test_volume_types_extra_specs_rbac.VolumeTypesExtraSpecsRbacTest.test_show_volume_type_extra_specs
Sergey Vilgelm11e0c662019-01-25 16:05:56 -0600102
103- job:
Ghanshyam Mann7304b7c2021-04-29 08:53:50 -0500104 name: patrole-member-wallaby
105 parent: patrole-member
106 override-checkout: stable/wallaby
107
108- job:
Ghanshyam Mannf6d7d0f2020-11-17 12:37:49 -0600109 name: patrole-member-victoria
110 parent: patrole-member
111 override-checkout: stable/victoria
112
113- job:
Vishakha Agarwala19f3db2020-05-02 21:09:33 +0530114 name: patrole-member-ussuri
115 parent: patrole-member
Ghanshyam Mann8592e582020-07-09 15:42:19 -0500116 nodeset: openstack-single-node-bionic
Vishakha Agarwala19f3db2020-05-02 21:09:33 +0530117 override-checkout: stable/ussuri
Ghanshyam Mann8cac1332021-07-27 10:56:29 -0500118 vars:
119 # https://storyboard.openstack.org/#!/story/2009048
120 tempest_exclude_regex: patrole_tempest_plugin.tests.api.volume.test_volume_actions_rbac.VolumesActionsV3RbacTest.test_force_detach_volume_from_instance
Vishakha Agarwala19f3db2020-05-02 21:09:33 +0530121
122- job:
Hidekazu Nakamura211d4f92018-01-09 10:29:17 +0900123 name: patrole-multinode-admin
Felipe Monteiro25949b82017-11-29 23:25:34 +0000124 parent: patrole-base-multinode
rajat290fc826d2017-11-21 00:06:00 +0530125 voting: false
Felipe Monteiro318fa3b2018-06-19 16:53:33 -0400126 vars:
127 devstack_localrc:
Mykola Yakovlieve0f35502018-09-26 18:26:57 -0500128 RBAC_TEST_ROLES: admin
rajat290fc826d2017-11-21 00:06:00 +0530129
130- job:
Hidekazu Nakamura211d4f92018-01-09 10:29:17 +0900131 name: patrole-multinode-member
Felipe Monteiro25949b82017-11-29 23:25:34 +0000132 parent: patrole-base-multinode
rajat290fc826d2017-11-21 00:06:00 +0530133 voting: false
Felipe Monteiro318fa3b2018-06-19 16:53:33 -0400134 vars:
135 devstack_localrc:
Mykola Yakovlieve0f35502018-09-26 18:26:57 -0500136 RBAC_TEST_ROLES: member
rajat290fc826d2017-11-21 00:06:00 +0530137
138- job:
Doug Schveningerff2fba22020-08-24 18:52:37 -0500139 name: patrole-multinode-reader
140 parent: patrole-base-multinode
141 voting: false
142 vars:
143 devstack_localrc:
144 RBAC_TEST_ROLES: reader
145
146- job:
Hidekazu Nakamura211d4f92018-01-09 10:29:17 +0900147 name: patrole-py35-member
Felipe Monteiro25949b82017-11-29 23:25:34 +0000148 parent: patrole-base
Felipe Monteiro2fc29292018-06-15 18:26:27 -0400149 description: Patrole py35 job for member role.
Felipe Monteiro097d94c2018-02-25 13:48:14 +0000150 vars:
151 devstack_localrc:
Felipe Monteiro2fc29292018-06-15 18:26:27 -0400152 # Use member for py35 because arguably negative testing is more
Felipe Monteiro097d94c2018-02-25 13:48:14 +0000153 # important than admin, which is already covered by patrole-admin job.
Mykola Yakovlieve0f35502018-09-26 18:26:57 -0500154 RBAC_TEST_ROLES: member
Doug Hellmann8669a512018-03-22 17:42:03 -0400155 USE_PYTHON3: true
Felipe Monteiro097d94c2018-02-25 13:48:14 +0000156 devstack_services:
157 s-account: false
158 s-container: false
159 s-object: false
160 s-proxy: false
161 # Without Swift, c-bak cannot run (in the gate at least).
162 c-bak: false
rajat290fc826d2017-11-21 00:06:00 +0530163
Mykola Yakovlievd0671482018-07-23 12:13:02 -0500164- job:
Felipe Monteirobbbdd932018-10-31 23:28:39 -0400165 name: patrole-extension-base
Mykola Yakovlievd0671482018-07-23 12:13:02 -0500166 parent: patrole-base
167 description: |
Felipe Monteirobbbdd932018-10-31 23:28:39 -0400168 Patrole plugin job for admin and member roles which runs RBAC tests for
169 neutron-tempest-plugin APIs (if the plugin is installed).
170
171 Covers Neutron extension functionality only. Should not be used for
172 supporting Neutron plugins like fwaas.
Mykola Yakovlievd0671482018-07-23 12:13:02 -0500173 required-projects:
Doug Schveninger8e3b0322020-08-15 19:34:46 -0500174 - name: opendev.org/openstack/tempest
175 - name: opendev.org/openstack/patrole
176 - name: opendev.org/openstack/neutron-tempest-plugin
Mykola Yakovlievd0671482018-07-23 12:13:02 -0500177 vars:
ps39106b229a72019-07-10 21:54:44 -0700178 tempest_plugins:
179 - patrole
180 - neutron-tempest-plugin
Mykola Yakovlievd0671482018-07-23 12:13:02 -0500181 devstack_plugins:
OpenDev Sysadminseedb0392019-04-19 19:33:57 +0000182 neutron: https://opendev.org/openstack/neutron.git
183 patrole: https://opendev.org/openstack/patrole.git
184 neutron-tempest-plugin: https://opendev.org/openstack/neutron-tempest-plugin.git
Mykola Yakovlievd0671482018-07-23 12:13:02 -0500185 devstack_services:
186 tempest: true
187 neutron: true
188 neutron-segments: true
Mykola Yakovliev56bb7312018-08-16 18:34:10 -0500189 neutron-qos: true
Felipe Monteirobbbdd932018-10-31 23:28:39 -0400190 tempest_test_regex: (?=.*ExtRbacTest)(^patrole_tempest_plugin\.tests\.api)
Mykola Yakovlievd0671482018-07-23 12:13:02 -0500191
192- job:
Felipe Monteirobbbdd932018-10-31 23:28:39 -0400193 name: patrole-extension-admin
194 parent: patrole-extension-base
Mykola Yakovlievd0671482018-07-23 12:13:02 -0500195 voting: false
196 vars:
197 devstack_localrc:
Mykola Yakovlieve0f35502018-09-26 18:26:57 -0500198 RBAC_TEST_ROLES: admin
Sergey Vilgelm11e0c662019-01-25 16:05:56 -0600199
200- job:
201 name: patrole-extension-member
202 parent: patrole-extension-base
203 voting: false
204 vars:
205 devstack_localrc:
206 RBAC_TEST_ROLES: member
Mykola Yakovlievd0671482018-07-23 12:13:02 -0500207
Doug Schveningerff2fba22020-08-24 18:52:37 -0500208- job:
209 name: patrole-extension-reader
210 parent: patrole-extension-base
211 voting: false
212 vars:
213 devstack_localrc:
214 RBAC_TEST_ROLES: reader
215
rajat290fc826d2017-11-21 00:06:00 +0530216- project:
Felipe Monteirof4cb74c2018-08-19 17:18:56 +0100217 templates:
Andreas Jaegera3c15da2018-09-09 06:39:31 +0200218 - openstack-cover-jobs
Martin Kopecfa0ee132021-10-07 08:48:51 +0000219 - openstack-python3-yoga-jobs
Doug Hellmann4635c6a2018-09-08 22:52:43 -0400220 - check-requirements
Doug Hellmannd720bad2018-09-08 22:54:03 -0400221 - publish-openstack-docs-pti
222 - release-notes-jobs-python3
rajat290fc826d2017-11-21 00:06:00 +0530223 check:
224 jobs:
Hidekazu Nakamura211d4f92018-01-09 10:29:17 +0900225 - patrole-admin
226 - patrole-member
Sergey Vilgelm11e0c662019-01-25 16:05:56 -0600227 - patrole-reader
Ghanshyam Mann7304b7c2021-04-29 08:53:50 -0500228 - patrole-member-wallaby
Ghanshyam Mannf6d7d0f2020-11-17 12:37:49 -0600229 - patrole-member-victoria
Vishakha Agarwala19f3db2020-05-02 21:09:33 +0530230 - patrole-member-ussuri
Hidekazu Nakamura211d4f92018-01-09 10:29:17 +0900231 - patrole-multinode-admin
232 - patrole-multinode-member
Doug Schveningerff2fba22020-08-24 18:52:37 -0500233 - patrole-multinode-reader
Felipe Monteirobbbdd932018-10-31 23:28:39 -0400234 - patrole-extension-admin
235 - patrole-extension-member
Doug Schveningerff2fba22020-08-24 18:52:37 -0500236 - patrole-extension-reader
rajat290fc826d2017-11-21 00:06:00 +0530237 gate:
238 jobs:
Hidekazu Nakamura211d4f92018-01-09 10:29:17 +0900239 - patrole-admin
240 - patrole-member
Doug Schveningerff2fba22020-08-24 18:52:37 -0500241 - patrole-reader
Felipe Monteiro1bee1422018-08-28 21:19:32 -0400242 periodic-stable:
243 jobs:
Ghanshyam Mann7304b7c2021-04-29 08:53:50 -0500244 - patrole-member-wallaby
Ghanshyam Mannf6d7d0f2020-11-17 12:37:49 -0600245 - patrole-member-victoria
Vishakha Agarwala19f3db2020-05-02 21:09:33 +0530246 - patrole-member-ussuri