blob: fd8c265fe9b7da8c843c684bf3b9ae3b023a713c [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
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 Monteiro4c3ae9b2018-02-25 18:33:32 +000090 name: patrole-member-queens
91 parent: patrole-member
92 override-checkout: stable/queens
93
94- job:
95 name: patrole-member-pike
96 parent: patrole-member
97 override-checkout: stable/pike
98
99- job:
Hidekazu Nakamura211d4f92018-01-09 10:29:17 +0900100 name: patrole-multinode-admin
Felipe Monteiro25949b82017-11-29 23:25:34 +0000101 parent: patrole-base-multinode
rajat290fc826d2017-11-21 00:06:00 +0530102 voting: false
Felipe Monteiro318fa3b2018-06-19 16:53:33 -0400103 vars:
104 devstack_localrc:
105 RBAC_TEST_ROLE: admin
rajat290fc826d2017-11-21 00:06:00 +0530106
107- job:
Hidekazu Nakamura211d4f92018-01-09 10:29:17 +0900108 name: patrole-multinode-member
Felipe Monteiro25949b82017-11-29 23:25:34 +0000109 parent: patrole-base-multinode
rajat290fc826d2017-11-21 00:06:00 +0530110 voting: false
Felipe Monteiro318fa3b2018-06-19 16:53:33 -0400111 vars:
112 devstack_localrc:
113 RBAC_TEST_ROLE: member
rajat290fc826d2017-11-21 00:06:00 +0530114
115- job:
Hidekazu Nakamura211d4f92018-01-09 10:29:17 +0900116 name: patrole-py35-member
Felipe Monteiro25949b82017-11-29 23:25:34 +0000117 parent: patrole-base
Felipe Monteiro2fc29292018-06-15 18:26:27 -0400118 description: Patrole py35 job for member role.
Felipe Monteiro097d94c2018-02-25 13:48:14 +0000119 vars:
120 devstack_localrc:
Felipe Monteiro2fc29292018-06-15 18:26:27 -0400121 # Use member for py35 because arguably negative testing is more
Felipe Monteiro097d94c2018-02-25 13:48:14 +0000122 # important than admin, which is already covered by patrole-admin job.
Felipe Monteiro2fc29292018-06-15 18:26:27 -0400123 RBAC_TEST_ROLE: member
Doug Hellmann8669a512018-03-22 17:42:03 -0400124 USE_PYTHON3: true
Felipe Monteiro097d94c2018-02-25 13:48:14 +0000125 devstack_services:
126 s-account: false
127 s-container: false
128 s-object: false
129 s-proxy: false
130 # Without Swift, c-bak cannot run (in the gate at least).
131 c-bak: false
rajat290fc826d2017-11-21 00:06:00 +0530132
Mykola Yakovlievd0671482018-07-23 12:13:02 -0500133- job:
134 name: patrole-plugin-base
135 parent: patrole-base
136 description: |
Doug Hellmann4635c6a2018-09-08 22:52:43 -0400137 Patrole plugin job for admin and member roles which
138 runs RBAC tests for neutron-tempest-plugin APIs (if the plugin is installed).
Mykola Yakovlievd0671482018-07-23 12:13:02 -0500139 required-projects:
140 - name: openstack/tempest
141 - name: openstack/patrole
142 - name: openstack/neutron-tempest-plugin
143 vars:
144 devstack_localrc:
Doug Hellmann4635c6a2018-09-08 22:52:43 -0400145 TEMPEST_PLUGINS: "'/opt/stack/patrole /opt/stack/neutron-tempest-plugin'"
Mykola Yakovlievd0671482018-07-23 12:13:02 -0500146 devstack_plugins:
147 neutron: git://git.openstack.org/openstack/neutron.git
148 patrole: git://git.openstack.org/openstack/patrole.git
149 neutron-tempest-plugin: git://git.openstack.org/openstack/neutron-tempest-plugin.git
150 devstack_services:
151 tempest: true
152 neutron: true
153 neutron-segments: true
154
155- job:
156 name: patrole-plugin-member
157 parent: patrole-plugin-base
158 voting: false
159 vars:
160 devstack_localrc:
161 RBAC_TEST_ROLE: member
162 tempest_test_regex: (?=.*PluginRbacTest)(^patrole_tempest_plugin\.tests\.api)
163
164- job:
165 name: patrole-plugin-admin
166 parent: patrole-plugin-base
167 voting: false
168 vars:
169 devstack_localrc:
170 RBAC_TEST_ROLE: admin
171 tempest_test_regex: (?=.*PluginRbacTest)(^patrole_tempest_plugin\.tests\.api)
172
rajat290fc826d2017-11-21 00:06:00 +0530173- project:
Felipe Monteirof4cb74c2018-08-19 17:18:56 +0100174 templates:
175 - openstack-python36-jobs
Doug Hellmann4635c6a2018-09-08 22:52:43 -0400176 - openstack-python-jobs
177 - openstack-python35-jobs
178 - check-requirements
179 - publish-openstack-sphinx-docs
180 - release-notes-jobs
rajat290fc826d2017-11-21 00:06:00 +0530181 check:
182 jobs:
Hidekazu Nakamura211d4f92018-01-09 10:29:17 +0900183 - patrole-admin
184 - patrole-member
Felipe Monteiro4c3ae9b2018-02-25 18:33:32 +0000185 - patrole-member-queens
186 - patrole-member-pike
Hidekazu Nakamura211d4f92018-01-09 10:29:17 +0900187 - patrole-py35-member
188 - patrole-multinode-admin
189 - patrole-multinode-member
Doug Hellmann8669a512018-03-22 17:42:03 -0400190 - openstack-tox-lower-constraints
Mykola Yakovlievd0671482018-07-23 12:13:02 -0500191 - patrole-plugin-admin
192 - patrole-plugin-member
Doug Hellmann4635c6a2018-09-08 22:52:43 -0400193 - openstack-tox-cover:
194 voting: false
195
rajat290fc826d2017-11-21 00:06:00 +0530196 gate:
197 jobs:
Hidekazu Nakamura211d4f92018-01-09 10:29:17 +0900198 - patrole-admin
199 - patrole-member