blob: 645dd8c246e9bb86b7d158f917f8712a53d1a1b6 [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/.*
Felipe Monteirod1a87c52018-11-01 11:34:29 -040017 - ^etc/.*$
rajat290fc826d2017-11-21 00:06:00 +053018 - ^patrole/patrole_tempest_plugin/tests/unit/.*$
Felipe Monteirod1a87c52018-11-01 11:34:29 -040019 - ^patrole/patrole_tempest_plugin/hacking/.*$
rajat290fc826d2017-11-21 00:06:00 +053020 - ^releasenotes/.*
21 - ^setup.cfg$
Felipe Monteiro097d94c2018-02-25 13:48:14 +000022 vars:
23 devstack_localrc:
Mykola Yakovlievd0671482018-07-23 12:13:02 -050024 TEMPEST_PLUGINS: "'/opt/stack/patrole'"
Felipe Monteiro097d94c2018-02-25 13:48:14 +000025 devstack_plugins:
26 patrole: git://git.openstack.org/openstack/patrole.git
27 devstack_services:
28 tempest: true
29 neutron: true
Mykola Yakovliev04b26282018-07-23 12:13:02 -050030 neutron-trunk: true
Felipe Monteiro097d94c2018-02-25 13:48:14 +000031 tempest_concurrency: 2
32 tempest_test_regex: (?!.*\[.*\bslow\b.*\])(^patrole_tempest_plugin\.tests\.api)
33 tox_envlist: all-plugin
rajat290fc826d2017-11-21 00:06:00 +053034
35- job:
Felipe Monteiro25949b82017-11-29 23:25:34 +000036 name: patrole-base-multinode
Felipe Monteiro318fa3b2018-06-19 16:53:33 -040037 parent: tempest-multinode-full
38 description: |-
39 Patrole base job for multinode and "slow" tests where "slow" tests include:
40
41 * Tests that take more than ~30 seconds to run.
42 * Tests that experience spurious failures related to servers, volumes,
43 backups and similar resources failing to build.
rajat290fc826d2017-11-21 00:06:00 +053044 timeout: 7800
Felipe Monteiro318fa3b2018-06-19 16:53:33 -040045 branches:
46 - master
47 required-projects:
48 - openstack-infra/devstack-gate
49 - openstack/tempest
50 - openstack/patrole
rajat290fc826d2017-11-21 00:06:00 +053051 irrelevant-files:
52 - ^(test-|)requirements.txt$
53 - ^.*\.rst$
54 - ^doc/.*
Felipe Monteirod1a87c52018-11-01 11:34:29 -040055 - ^etc/.*$
rajat290fc826d2017-11-21 00:06:00 +053056 - ^patrole/patrole_tempest_plugin/tests/unit/.*$
Felipe Monteirod1a87c52018-11-01 11:34:29 -040057 - ^patrole/patrole_tempest_plugin/hacking/.*$
rajat290fc826d2017-11-21 00:06:00 +053058 - ^releasenotes/.*
59 - ^setup.cfg$
Felipe Monteiro318fa3b2018-06-19 16:53:33 -040060 vars:
61 devstack_localrc:
62 TEMPEST_PLUGINS: "'{{ ansible_user_dir }}/src/git.openstack.org/openstack/patrole'"
63 devstack_plugins:
64 patrole: git://git.openstack.org/openstack/patrole.git
65 devstack_services:
66 tempest: true
67 neutron: true
68 tempest_concurrency: 1
69 tempest_test_regex: (?=.*\[.*\bslow\b.*\])(^patrole_tempest_plugin\.tests\.api)
70 tox_envlist: all-plugin
rajat290fc826d2017-11-21 00:06:00 +053071
72- job:
Hidekazu Nakamura211d4f92018-01-09 10:29:17 +090073 name: patrole-admin
Felipe Monteiro25949b82017-11-29 23:25:34 +000074 parent: patrole-base
Felipe Monteiro097d94c2018-02-25 13:48:14 +000075 description: Patrole job for admin role.
76 vars:
77 devstack_localrc:
78 RBAC_TEST_ROLE: admin
rajat290fc826d2017-11-21 00:06:00 +053079
80- job:
Hidekazu Nakamura211d4f92018-01-09 10:29:17 +090081 name: patrole-member
Felipe Monteiro25949b82017-11-29 23:25:34 +000082 parent: patrole-base
Felipe Monteiro2fc29292018-06-15 18:26:27 -040083 description: Patrole job for member role.
Felipe Monteiro4c3ae9b2018-02-25 18:33:32 +000084 # This currently works from stable/pike onward.
85 branches:
86 - master
87 - stable/queens
88 - stable/pike
Felipe Monteiro097d94c2018-02-25 13:48:14 +000089 vars:
90 devstack_localrc:
Felipe Monteiro2fc29292018-06-15 18:26:27 -040091 RBAC_TEST_ROLE: member
rajat290fc826d2017-11-21 00:06:00 +053092
93- job:
Felipe Monteiro22bb9b32018-08-28 21:17:58 -040094 name: patrole-member-rocky
95 parent: patrole-member
96 override-checkout: stable/rocky
97
98- job:
Felipe Monteiro4c3ae9b2018-02-25 18:33:32 +000099 name: patrole-member-queens
100 parent: patrole-member
101 override-checkout: stable/queens
102
103- job:
104 name: patrole-member-pike
105 parent: patrole-member
106 override-checkout: stable/pike
107
108- job:
Hidekazu Nakamura211d4f92018-01-09 10:29:17 +0900109 name: patrole-multinode-admin
Felipe Monteiro25949b82017-11-29 23:25:34 +0000110 parent: patrole-base-multinode
rajat290fc826d2017-11-21 00:06:00 +0530111 voting: false
Felipe Monteiro318fa3b2018-06-19 16:53:33 -0400112 vars:
113 devstack_localrc:
114 RBAC_TEST_ROLE: admin
rajat290fc826d2017-11-21 00:06:00 +0530115
116- job:
Hidekazu Nakamura211d4f92018-01-09 10:29:17 +0900117 name: patrole-multinode-member
Felipe Monteiro25949b82017-11-29 23:25:34 +0000118 parent: patrole-base-multinode
rajat290fc826d2017-11-21 00:06:00 +0530119 voting: false
Felipe Monteiro318fa3b2018-06-19 16:53:33 -0400120 vars:
121 devstack_localrc:
122 RBAC_TEST_ROLE: member
rajat290fc826d2017-11-21 00:06:00 +0530123
124- job:
Hidekazu Nakamura211d4f92018-01-09 10:29:17 +0900125 name: patrole-py35-member
Felipe Monteiro25949b82017-11-29 23:25:34 +0000126 parent: patrole-base
Felipe Monteiro2fc29292018-06-15 18:26:27 -0400127 description: Patrole py35 job for member role.
Felipe Monteiro097d94c2018-02-25 13:48:14 +0000128 vars:
129 devstack_localrc:
Felipe Monteiro2fc29292018-06-15 18:26:27 -0400130 # Use member for py35 because arguably negative testing is more
Felipe Monteiro097d94c2018-02-25 13:48:14 +0000131 # important than admin, which is already covered by patrole-admin job.
Felipe Monteiro2fc29292018-06-15 18:26:27 -0400132 RBAC_TEST_ROLE: member
Doug Hellmann8669a512018-03-22 17:42:03 -0400133 USE_PYTHON3: true
Felipe Monteiro097d94c2018-02-25 13:48:14 +0000134 devstack_services:
135 s-account: false
136 s-container: false
137 s-object: false
138 s-proxy: false
139 # Without Swift, c-bak cannot run (in the gate at least).
140 c-bak: false
rajat290fc826d2017-11-21 00:06:00 +0530141
Mykola Yakovlievd0671482018-07-23 12:13:02 -0500142- job:
143 name: patrole-plugin-base
144 parent: patrole-base
145 description: |
Doug Hellmann4635c6a2018-09-08 22:52:43 -0400146 Patrole plugin job for admin and member roles which
147 runs RBAC tests for neutron-tempest-plugin APIs (if the plugin is installed).
Mykola Yakovlievd0671482018-07-23 12:13:02 -0500148 required-projects:
149 - name: openstack/tempest
150 - name: openstack/patrole
151 - name: openstack/neutron-tempest-plugin
152 vars:
153 devstack_localrc:
Doug Hellmann4635c6a2018-09-08 22:52:43 -0400154 TEMPEST_PLUGINS: "'/opt/stack/patrole /opt/stack/neutron-tempest-plugin'"
Mykola Yakovlievd0671482018-07-23 12:13:02 -0500155 devstack_plugins:
156 neutron: git://git.openstack.org/openstack/neutron.git
157 patrole: git://git.openstack.org/openstack/patrole.git
158 neutron-tempest-plugin: git://git.openstack.org/openstack/neutron-tempest-plugin.git
159 devstack_services:
160 tempest: true
161 neutron: true
162 neutron-segments: true
Mykola Yakovliev56bb7312018-08-16 18:34:10 -0500163 neutron-qos: true
Mykola Yakovlievd0671482018-07-23 12:13:02 -0500164
165- job:
166 name: patrole-plugin-member
167 parent: patrole-plugin-base
168 voting: false
169 vars:
170 devstack_localrc:
171 RBAC_TEST_ROLE: member
172 tempest_test_regex: (?=.*PluginRbacTest)(^patrole_tempest_plugin\.tests\.api)
173
174- job:
175 name: patrole-plugin-admin
176 parent: patrole-plugin-base
177 voting: false
178 vars:
179 devstack_localrc:
180 RBAC_TEST_ROLE: admin
181 tempest_test_regex: (?=.*PluginRbacTest)(^patrole_tempest_plugin\.tests\.api)
182
rajat290fc826d2017-11-21 00:06:00 +0530183- project:
Felipe Monteirof4cb74c2018-08-19 17:18:56 +0100184 templates:
Andreas Jaegera3c15da2018-09-09 06:39:31 +0200185 - openstack-cover-jobs
186 - openstack-lower-constraints-jobs
Felipe Monteirof4cb74c2018-08-19 17:18:56 +0100187 - openstack-python36-jobs
Doug Hellmann4635c6a2018-09-08 22:52:43 -0400188 - openstack-python-jobs
189 - openstack-python35-jobs
190 - check-requirements
Doug Hellmannd720bad2018-09-08 22:54:03 -0400191 - publish-openstack-docs-pti
192 - release-notes-jobs-python3
rajat290fc826d2017-11-21 00:06:00 +0530193 check:
194 jobs:
Hidekazu Nakamura211d4f92018-01-09 10:29:17 +0900195 - patrole-admin
196 - patrole-member
Felipe Monteiro22bb9b32018-08-28 21:17:58 -0400197 - patrole-member-rocky
Felipe Monteiro4c3ae9b2018-02-25 18:33:32 +0000198 - patrole-member-queens
199 - patrole-member-pike
Hidekazu Nakamura211d4f92018-01-09 10:29:17 +0900200 - patrole-py35-member
201 - patrole-multinode-admin
202 - patrole-multinode-member
Mykola Yakovlievd0671482018-07-23 12:13:02 -0500203 - patrole-plugin-admin
204 - patrole-plugin-member
rajat290fc826d2017-11-21 00:06:00 +0530205 gate:
206 jobs:
Hidekazu Nakamura211d4f92018-01-09 10:29:17 +0900207 - patrole-admin
208 - patrole-member
Felipe Monteiro1bee1422018-08-28 21:19:32 -0400209 periodic-stable:
210 jobs:
211 - patrole-member-rocky
212 - patrole-member-queens
213 - patrole-member-pike