blob: fae679676026f3a946535cf42dbc4bd7666d760c [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:
12 - zuul: openstack-dev/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/.*$
rajat290fc826d2017-11-21 00:06:00 +053019 - ^patrole/patrole_tempest_plugin/tests/unit/.*$
Felipe Monteirod1a87c52018-11-01 11:34:29 -040020 - ^patrole/patrole_tempest_plugin/hacking/.*$
rajat290fc826d2017-11-21 00:06:00 +053021 - ^releasenotes/.*
22 - ^setup.cfg$
Felipe Monteiro097d94c2018-02-25 13:48:14 +000023 vars:
24 devstack_localrc:
Mykola Yakovlievd0671482018-07-23 12:13:02 -050025 TEMPEST_PLUGINS: "'/opt/stack/patrole'"
Felipe Monteiro097d94c2018-02-25 13:48:14 +000026 devstack_plugins:
27 patrole: git://git.openstack.org/openstack/patrole.git
28 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)
34 tox_envlist: all-plugin
rajat290fc826d2017-11-21 00:06:00 +053035
36- job:
Felipe Monteiro25949b82017-11-29 23:25:34 +000037 name: patrole-base-multinode
Felipe Monteiro318fa3b2018-06-19 16:53:33 -040038 parent: tempest-multinode-full
39 description: |-
40 Patrole base job for multinode and "slow" tests where "slow" tests include:
41
42 * Tests that take more than ~30 seconds to run.
43 * Tests that experience spurious failures related to servers, volumes,
44 backups and similar resources failing to build.
rajat290fc826d2017-11-21 00:06:00 +053045 timeout: 7800
Felipe Monteiro318fa3b2018-06-19 16:53:33 -040046 branches:
47 - master
48 required-projects:
49 - openstack-infra/devstack-gate
50 - openstack/tempest
51 - openstack/patrole
ghanshyamb6888232018-11-04 12:54:58 +000052 irrelevant-files: *patrole-irrelevant-files
Felipe Monteiro318fa3b2018-06-19 16:53:33 -040053 vars:
54 devstack_localrc:
55 TEMPEST_PLUGINS: "'{{ ansible_user_dir }}/src/git.openstack.org/openstack/patrole'"
56 devstack_plugins:
57 patrole: git://git.openstack.org/openstack/patrole.git
58 devstack_services:
59 tempest: true
60 neutron: true
61 tempest_concurrency: 1
62 tempest_test_regex: (?=.*\[.*\bslow\b.*\])(^patrole_tempest_plugin\.tests\.api)
63 tox_envlist: all-plugin
rajat290fc826d2017-11-21 00:06:00 +053064
65- job:
Hidekazu Nakamura211d4f92018-01-09 10:29:17 +090066 name: patrole-admin
Felipe Monteiro25949b82017-11-29 23:25:34 +000067 parent: patrole-base
Felipe Monteiro097d94c2018-02-25 13:48:14 +000068 description: Patrole job for admin role.
69 vars:
70 devstack_localrc:
71 RBAC_TEST_ROLE: admin
rajat290fc826d2017-11-21 00:06:00 +053072
73- job:
Hidekazu Nakamura211d4f92018-01-09 10:29:17 +090074 name: patrole-member
Felipe Monteiro25949b82017-11-29 23:25:34 +000075 parent: patrole-base
Felipe Monteiro2fc29292018-06-15 18:26:27 -040076 description: Patrole job for member role.
Felipe Monteiro4c3ae9b2018-02-25 18:33:32 +000077 # This currently works from stable/pike onward.
78 branches:
79 - master
80 - stable/queens
81 - stable/pike
Felipe Monteiro097d94c2018-02-25 13:48:14 +000082 vars:
83 devstack_localrc:
Felipe Monteiro2fc29292018-06-15 18:26:27 -040084 RBAC_TEST_ROLE: member
rajat290fc826d2017-11-21 00:06:00 +053085
86- job:
Felipe Monteiro22bb9b32018-08-28 21:17:58 -040087 name: patrole-member-rocky
88 parent: patrole-member
89 override-checkout: stable/rocky
90
91- job:
Felipe Monteiro4c3ae9b2018-02-25 18:33:32 +000092 name: patrole-member-queens
93 parent: patrole-member
94 override-checkout: stable/queens
95
96- job:
97 name: patrole-member-pike
98 parent: patrole-member
99 override-checkout: stable/pike
100
101- job:
Hidekazu Nakamura211d4f92018-01-09 10:29:17 +0900102 name: patrole-multinode-admin
Felipe Monteiro25949b82017-11-29 23:25:34 +0000103 parent: patrole-base-multinode
rajat290fc826d2017-11-21 00:06:00 +0530104 voting: false
Felipe Monteiro318fa3b2018-06-19 16:53:33 -0400105 vars:
106 devstack_localrc:
107 RBAC_TEST_ROLE: admin
rajat290fc826d2017-11-21 00:06:00 +0530108
109- job:
Hidekazu Nakamura211d4f92018-01-09 10:29:17 +0900110 name: patrole-multinode-member
Felipe Monteiro25949b82017-11-29 23:25:34 +0000111 parent: patrole-base-multinode
rajat290fc826d2017-11-21 00:06:00 +0530112 voting: false
Felipe Monteiro318fa3b2018-06-19 16:53:33 -0400113 vars:
114 devstack_localrc:
115 RBAC_TEST_ROLE: member
rajat290fc826d2017-11-21 00:06:00 +0530116
117- job:
Hidekazu Nakamura211d4f92018-01-09 10:29:17 +0900118 name: patrole-py35-member
Felipe Monteiro25949b82017-11-29 23:25:34 +0000119 parent: patrole-base
Felipe Monteiro2fc29292018-06-15 18:26:27 -0400120 description: Patrole py35 job for member role.
Felipe Monteiro097d94c2018-02-25 13:48:14 +0000121 vars:
122 devstack_localrc:
Felipe Monteiro2fc29292018-06-15 18:26:27 -0400123 # Use member for py35 because arguably negative testing is more
Felipe Monteiro097d94c2018-02-25 13:48:14 +0000124 # important than admin, which is already covered by patrole-admin job.
Felipe Monteiro2fc29292018-06-15 18:26:27 -0400125 RBAC_TEST_ROLE: member
Doug Hellmann8669a512018-03-22 17:42:03 -0400126 USE_PYTHON3: true
Felipe Monteiro097d94c2018-02-25 13:48:14 +0000127 devstack_services:
128 s-account: false
129 s-container: false
130 s-object: false
131 s-proxy: false
132 # Without Swift, c-bak cannot run (in the gate at least).
133 c-bak: false
rajat290fc826d2017-11-21 00:06:00 +0530134
Mykola Yakovlievd0671482018-07-23 12:13:02 -0500135- job:
136 name: patrole-plugin-base
137 parent: patrole-base
138 description: |
Doug Hellmann4635c6a2018-09-08 22:52:43 -0400139 Patrole plugin job for admin and member roles which
140 runs RBAC tests for neutron-tempest-plugin APIs (if the plugin is installed).
Mykola Yakovlievd0671482018-07-23 12:13:02 -0500141 required-projects:
142 - name: openstack/tempest
143 - name: openstack/patrole
144 - name: openstack/neutron-tempest-plugin
145 vars:
146 devstack_localrc:
Doug Hellmann4635c6a2018-09-08 22:52:43 -0400147 TEMPEST_PLUGINS: "'/opt/stack/patrole /opt/stack/neutron-tempest-plugin'"
Mykola Yakovlievd0671482018-07-23 12:13:02 -0500148 devstack_plugins:
149 neutron: git://git.openstack.org/openstack/neutron.git
150 patrole: git://git.openstack.org/openstack/patrole.git
151 neutron-tempest-plugin: git://git.openstack.org/openstack/neutron-tempest-plugin.git
152 devstack_services:
153 tempest: true
154 neutron: true
155 neutron-segments: true
Mykola Yakovliev56bb7312018-08-16 18:34:10 -0500156 neutron-qos: true
Mykola Yakovlievd0671482018-07-23 12:13:02 -0500157
158- job:
159 name: patrole-plugin-member
160 parent: patrole-plugin-base
161 voting: false
162 vars:
163 devstack_localrc:
164 RBAC_TEST_ROLE: member
165 tempest_test_regex: (?=.*PluginRbacTest)(^patrole_tempest_plugin\.tests\.api)
166
167- job:
168 name: patrole-plugin-admin
169 parent: patrole-plugin-base
170 voting: false
171 vars:
172 devstack_localrc:
173 RBAC_TEST_ROLE: admin
174 tempest_test_regex: (?=.*PluginRbacTest)(^patrole_tempest_plugin\.tests\.api)
175
rajat290fc826d2017-11-21 00:06:00 +0530176- project:
Felipe Monteirof4cb74c2018-08-19 17:18:56 +0100177 templates:
Andreas Jaegera3c15da2018-09-09 06:39:31 +0200178 - openstack-cover-jobs
179 - openstack-lower-constraints-jobs
Felipe Monteirof4cb74c2018-08-19 17:18:56 +0100180 - openstack-python36-jobs
Doug Hellmann4635c6a2018-09-08 22:52:43 -0400181 - openstack-python-jobs
182 - openstack-python35-jobs
183 - check-requirements
Doug Hellmannd720bad2018-09-08 22:54:03 -0400184 - publish-openstack-docs-pti
185 - release-notes-jobs-python3
rajat290fc826d2017-11-21 00:06:00 +0530186 check:
187 jobs:
Hidekazu Nakamura211d4f92018-01-09 10:29:17 +0900188 - patrole-admin
189 - patrole-member
Felipe Monteiro22bb9b32018-08-28 21:17:58 -0400190 - patrole-member-rocky
Felipe Monteiro4c3ae9b2018-02-25 18:33:32 +0000191 - patrole-member-queens
192 - patrole-member-pike
Hidekazu Nakamura211d4f92018-01-09 10:29:17 +0900193 - patrole-py35-member
194 - patrole-multinode-admin
195 - patrole-multinode-member
Mykola Yakovlievd0671482018-07-23 12:13:02 -0500196 - patrole-plugin-admin
197 - patrole-plugin-member
rajat290fc826d2017-11-21 00:06:00 +0530198 gate:
199 jobs:
Hidekazu Nakamura211d4f92018-01-09 10:29:17 +0900200 - patrole-admin
201 - patrole-member
Felipe Monteiro1bee1422018-08-28 21:19:32 -0400202 periodic-stable:
203 jobs:
204 - patrole-member-rocky
205 - patrole-member-queens
206 - patrole-member-pike