blob: 77755ed9154e0c322ebdcc573be08d348298cd18 [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: |
5 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
rajat290fc826d2017-11-21 00:06:00 +053013 irrelevant-files:
14 - ^(test-|)requirements.txt$
15 - ^.*\.rst$
16 - ^doc/.*
17 - ^patrole/patrole_tempest_plugin/tests/unit/.*$
18 - ^releasenotes/.*
19 - ^setup.cfg$
Felipe Monteiro097d94c2018-02-25 13:48:14 +000020 vars:
21 devstack_localrc:
Mykola Yakovlievd0671482018-07-23 12:13:02 -050022 TEMPEST_PLUGINS: "'/opt/stack/patrole'"
Felipe Monteiro097d94c2018-02-25 13:48:14 +000023 devstack_plugins:
24 patrole: git://git.openstack.org/openstack/patrole.git
25 devstack_services:
26 tempest: true
27 neutron: true
Mykola Yakovliev04b26282018-07-23 12:13:02 -050028 neutron-trunk: true
Felipe Monteiro097d94c2018-02-25 13:48:14 +000029 tempest_concurrency: 2
30 tempest_test_regex: (?!.*\[.*\bslow\b.*\])(^patrole_tempest_plugin\.tests\.api)
31 tox_envlist: all-plugin
rajat290fc826d2017-11-21 00:06:00 +053032
33- job:
Felipe Monteiro25949b82017-11-29 23:25:34 +000034 name: patrole-base-multinode
Felipe Monteiro318fa3b2018-06-19 16:53:33 -040035 parent: tempest-multinode-full
36 description: |-
37 Patrole base job for multinode and "slow" tests where "slow" tests include:
38
39 * Tests that take more than ~30 seconds to run.
40 * Tests that experience spurious failures related to servers, volumes,
41 backups and similar resources failing to build.
rajat290fc826d2017-11-21 00:06:00 +053042 timeout: 7800
Felipe Monteiro318fa3b2018-06-19 16:53:33 -040043 branches:
44 - master
45 required-projects:
46 - openstack-infra/devstack-gate
47 - openstack/tempest
48 - openstack/patrole
rajat290fc826d2017-11-21 00:06:00 +053049 irrelevant-files:
50 - ^(test-|)requirements.txt$
51 - ^.*\.rst$
52 - ^doc/.*
53 - ^patrole/patrole_tempest_plugin/tests/unit/.*$
54 - ^releasenotes/.*
55 - ^setup.cfg$
Felipe Monteiro318fa3b2018-06-19 16:53:33 -040056 vars:
57 devstack_localrc:
58 TEMPEST_PLUGINS: "'{{ ansible_user_dir }}/src/git.openstack.org/openstack/patrole'"
59 devstack_plugins:
60 patrole: git://git.openstack.org/openstack/patrole.git
61 devstack_services:
62 tempest: true
63 neutron: true
64 tempest_concurrency: 1
65 tempest_test_regex: (?=.*\[.*\bslow\b.*\])(^patrole_tempest_plugin\.tests\.api)
66 tox_envlist: all-plugin
rajat290fc826d2017-11-21 00:06:00 +053067
68- job:
Hidekazu Nakamura211d4f92018-01-09 10:29:17 +090069 name: patrole-admin
Felipe Monteiro25949b82017-11-29 23:25:34 +000070 parent: patrole-base
Felipe Monteiro097d94c2018-02-25 13:48:14 +000071 description: Patrole job for admin role.
72 vars:
73 devstack_localrc:
74 RBAC_TEST_ROLE: admin
rajat290fc826d2017-11-21 00:06:00 +053075
76- job:
Hidekazu Nakamura211d4f92018-01-09 10:29:17 +090077 name: patrole-member
Felipe Monteiro25949b82017-11-29 23:25:34 +000078 parent: patrole-base
Felipe Monteiro2fc29292018-06-15 18:26:27 -040079 description: Patrole job for member role.
Felipe Monteiro4c3ae9b2018-02-25 18:33:32 +000080 # This currently works from stable/pike onward.
81 branches:
82 - master
83 - stable/queens
84 - stable/pike
Felipe Monteiro097d94c2018-02-25 13:48:14 +000085 vars:
86 devstack_localrc:
Felipe Monteiro2fc29292018-06-15 18:26:27 -040087 RBAC_TEST_ROLE: member
rajat290fc826d2017-11-21 00:06:00 +053088
89- job:
Felipe Monteiro22bb9b32018-08-28 21:17:58 -040090 name: patrole-member-rocky
91 parent: patrole-member
92 override-checkout: stable/rocky
93
94- job:
Felipe Monteiro4c3ae9b2018-02-25 18:33:32 +000095 name: patrole-member-queens
96 parent: patrole-member
97 override-checkout: stable/queens
98
99- job:
100 name: patrole-member-pike
101 parent: patrole-member
102 override-checkout: stable/pike
103
104- job:
Hidekazu Nakamura211d4f92018-01-09 10:29:17 +0900105 name: patrole-multinode-admin
Felipe Monteiro25949b82017-11-29 23:25:34 +0000106 parent: patrole-base-multinode
rajat290fc826d2017-11-21 00:06:00 +0530107 voting: false
Felipe Monteiro318fa3b2018-06-19 16:53:33 -0400108 vars:
109 devstack_localrc:
110 RBAC_TEST_ROLE: admin
rajat290fc826d2017-11-21 00:06:00 +0530111
112- job:
Hidekazu Nakamura211d4f92018-01-09 10:29:17 +0900113 name: patrole-multinode-member
Felipe Monteiro25949b82017-11-29 23:25:34 +0000114 parent: patrole-base-multinode
rajat290fc826d2017-11-21 00:06:00 +0530115 voting: false
Felipe Monteiro318fa3b2018-06-19 16:53:33 -0400116 vars:
117 devstack_localrc:
118 RBAC_TEST_ROLE: member
rajat290fc826d2017-11-21 00:06:00 +0530119
120- job:
Hidekazu Nakamura211d4f92018-01-09 10:29:17 +0900121 name: patrole-py35-member
Felipe Monteiro25949b82017-11-29 23:25:34 +0000122 parent: patrole-base
Felipe Monteiro2fc29292018-06-15 18:26:27 -0400123 description: Patrole py35 job for member role.
Felipe Monteiro097d94c2018-02-25 13:48:14 +0000124 vars:
125 devstack_localrc:
Felipe Monteiro2fc29292018-06-15 18:26:27 -0400126 # Use member for py35 because arguably negative testing is more
Felipe Monteiro097d94c2018-02-25 13:48:14 +0000127 # important than admin, which is already covered by patrole-admin job.
Felipe Monteiro2fc29292018-06-15 18:26:27 -0400128 RBAC_TEST_ROLE: member
Doug Hellmann8669a512018-03-22 17:42:03 -0400129 USE_PYTHON3: true
Felipe Monteiro097d94c2018-02-25 13:48:14 +0000130 devstack_services:
131 s-account: false
132 s-container: false
133 s-object: false
134 s-proxy: false
135 # Without Swift, c-bak cannot run (in the gate at least).
136 c-bak: false
rajat290fc826d2017-11-21 00:06:00 +0530137
Mykola Yakovlievd0671482018-07-23 12:13:02 -0500138- job:
139 name: patrole-plugin-base
140 parent: patrole-base
141 description: |
142 Patrole plugin job for admin and member roles which
143 runs RBAC tests for neutron-tempest-plugin APIs (if the plugin is installed).
144 required-projects:
145 - name: openstack/tempest
146 - name: openstack/patrole
147 - name: openstack/neutron-tempest-plugin
148 vars:
149 devstack_localrc:
150 TEMPEST_PLUGINS: "'/opt/stack/patrole
151 /opt/stack/neutron-tempest-plugin'"
152 devstack_plugins:
153 neutron: git://git.openstack.org/openstack/neutron.git
154 patrole: git://git.openstack.org/openstack/patrole.git
155 neutron-tempest-plugin: git://git.openstack.org/openstack/neutron-tempest-plugin.git
156 devstack_services:
157 tempest: true
158 neutron: true
159 neutron-segments: true
160
161- job:
162 name: patrole-plugin-member
163 parent: patrole-plugin-base
164 voting: false
165 vars:
166 devstack_localrc:
167 RBAC_TEST_ROLE: member
168 tempest_test_regex: (?=.*PluginRbacTest)(^patrole_tempest_plugin\.tests\.api)
169
170- job:
171 name: patrole-plugin-admin
172 parent: patrole-plugin-base
173 voting: false
174 vars:
175 devstack_localrc:
176 RBAC_TEST_ROLE: admin
177 tempest_test_regex: (?=.*PluginRbacTest)(^patrole_tempest_plugin\.tests\.api)
178
rajat290fc826d2017-11-21 00:06:00 +0530179- project:
Felipe Monteirof4cb74c2018-08-19 17:18:56 +0100180 templates:
181 - openstack-python36-jobs
rajat290fc826d2017-11-21 00:06:00 +0530182 check:
183 jobs:
Hidekazu Nakamura211d4f92018-01-09 10:29:17 +0900184 - patrole-admin
185 - patrole-member
Felipe Monteiro22bb9b32018-08-28 21:17:58 -0400186 - patrole-member-rocky
Felipe Monteiro4c3ae9b2018-02-25 18:33:32 +0000187 - patrole-member-queens
188 - patrole-member-pike
Hidekazu Nakamura211d4f92018-01-09 10:29:17 +0900189 - patrole-py35-member
190 - patrole-multinode-admin
191 - patrole-multinode-member
Doug Hellmann8669a512018-03-22 17:42:03 -0400192 - openstack-tox-lower-constraints
Mykola Yakovlievd0671482018-07-23 12:13:02 -0500193 - patrole-plugin-admin
194 - patrole-plugin-member
rajat290fc826d2017-11-21 00:06:00 +0530195 gate:
196 jobs:
Hidekazu Nakamura211d4f92018-01-09 10:29:17 +0900197 - patrole-admin
198 - patrole-member
Felipe Monteiro1bee1422018-08-28 21:19:32 -0400199 periodic-stable:
200 jobs:
201 - patrole-member-rocky
202 - patrole-member-queens
203 - patrole-member-pike