blob: edd812c2399bedbb1c31c92dfb39b88d7a2fb0e4 [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)
Felipe Monteiro0d3c7432018-10-28 02:14:22 +000034 tox_envlist: all
35 tox_extra_args: --sitepackages
rajat290fc826d2017-11-21 00:06:00 +053036
37- job:
Felipe Monteiro25949b82017-11-29 23:25:34 +000038 name: patrole-base-multinode
Felipe Monteiro318fa3b2018-06-19 16:53:33 -040039 parent: tempest-multinode-full
40 description: |-
41 Patrole base job for multinode and "slow" tests where "slow" tests include:
42
43 * Tests that take more than ~30 seconds to run.
44 * Tests that experience spurious failures related to servers, volumes,
45 backups and similar resources failing to build.
rajat290fc826d2017-11-21 00:06:00 +053046 timeout: 7800
Felipe Monteiro318fa3b2018-06-19 16:53:33 -040047 branches:
48 - master
49 required-projects:
50 - openstack-infra/devstack-gate
51 - openstack/tempest
52 - openstack/patrole
ghanshyamb6888232018-11-04 12:54:58 +000053 irrelevant-files: *patrole-irrelevant-files
Felipe Monteiro318fa3b2018-06-19 16:53:33 -040054 vars:
55 devstack_localrc:
56 TEMPEST_PLUGINS: "'{{ ansible_user_dir }}/src/git.openstack.org/openstack/patrole'"
57 devstack_plugins:
58 patrole: git://git.openstack.org/openstack/patrole.git
59 devstack_services:
60 tempest: true
61 neutron: true
62 tempest_concurrency: 1
63 tempest_test_regex: (?=.*\[.*\bslow\b.*\])(^patrole_tempest_plugin\.tests\.api)
Felipe Monteiro0d3c7432018-10-28 02:14:22 +000064 tox_envlist: all
65 tox_extra_args: --sitepackages
rajat290fc826d2017-11-21 00:06:00 +053066
67- job:
Hidekazu Nakamura211d4f92018-01-09 10:29:17 +090068 name: patrole-admin
Felipe Monteiro25949b82017-11-29 23:25:34 +000069 parent: patrole-base
Felipe Monteiro097d94c2018-02-25 13:48:14 +000070 description: Patrole job for admin role.
71 vars:
72 devstack_localrc:
Mykola Yakovlieve0f35502018-09-26 18:26:57 -050073 RBAC_TEST_ROLES: admin
rajat290fc826d2017-11-21 00:06:00 +053074
75- job:
Hidekazu Nakamura211d4f92018-01-09 10:29:17 +090076 name: patrole-member
Felipe Monteiro25949b82017-11-29 23:25:34 +000077 parent: patrole-base
Felipe Monteiro2fc29292018-06-15 18:26:27 -040078 description: Patrole job for member role.
Felipe Monteiro4c3ae9b2018-02-25 18:33:32 +000079 # This currently works from stable/pike onward.
80 branches:
81 - master
82 - stable/queens
83 - stable/pike
Felipe Monteiro097d94c2018-02-25 13:48:14 +000084 vars:
85 devstack_localrc:
Mykola Yakovlieve0f35502018-09-26 18:26:57 -050086 RBAC_TEST_ROLES: member
rajat290fc826d2017-11-21 00:06:00 +053087
88- job:
Felipe Monteiro22bb9b32018-08-28 21:17:58 -040089 name: patrole-member-rocky
90 parent: patrole-member
91 override-checkout: stable/rocky
92
93- job:
Felipe Monteiro4c3ae9b2018-02-25 18:33:32 +000094 name: patrole-member-queens
95 parent: patrole-member
96 override-checkout: stable/queens
97
98- job:
99 name: patrole-member-pike
100 parent: patrole-member
101 override-checkout: stable/pike
102
103- job:
Hidekazu Nakamura211d4f92018-01-09 10:29:17 +0900104 name: patrole-multinode-admin
Felipe Monteiro25949b82017-11-29 23:25:34 +0000105 parent: patrole-base-multinode
rajat290fc826d2017-11-21 00:06:00 +0530106 voting: false
Felipe Monteiro318fa3b2018-06-19 16:53:33 -0400107 vars:
108 devstack_localrc:
Mykola Yakovlieve0f35502018-09-26 18:26:57 -0500109 RBAC_TEST_ROLES: admin
rajat290fc826d2017-11-21 00:06:00 +0530110
111- job:
Hidekazu Nakamura211d4f92018-01-09 10:29:17 +0900112 name: patrole-multinode-member
Felipe Monteiro25949b82017-11-29 23:25:34 +0000113 parent: patrole-base-multinode
rajat290fc826d2017-11-21 00:06:00 +0530114 voting: false
Felipe Monteiro318fa3b2018-06-19 16:53:33 -0400115 vars:
116 devstack_localrc:
Mykola Yakovlieve0f35502018-09-26 18:26:57 -0500117 RBAC_TEST_ROLES: member
rajat290fc826d2017-11-21 00:06:00 +0530118
119- job:
Hidekazu Nakamura211d4f92018-01-09 10:29:17 +0900120 name: patrole-py35-member
Felipe Monteiro25949b82017-11-29 23:25:34 +0000121 parent: patrole-base
Felipe Monteiro2fc29292018-06-15 18:26:27 -0400122 description: Patrole py35 job for member role.
Felipe Monteiro097d94c2018-02-25 13:48:14 +0000123 vars:
124 devstack_localrc:
Felipe Monteiro2fc29292018-06-15 18:26:27 -0400125 # Use member for py35 because arguably negative testing is more
Felipe Monteiro097d94c2018-02-25 13:48:14 +0000126 # important than admin, which is already covered by patrole-admin job.
Mykola Yakovlieve0f35502018-09-26 18:26:57 -0500127 RBAC_TEST_ROLES: member
Doug Hellmann8669a512018-03-22 17:42:03 -0400128 USE_PYTHON3: true
Felipe Monteiro097d94c2018-02-25 13:48:14 +0000129 devstack_services:
130 s-account: false
131 s-container: false
132 s-object: false
133 s-proxy: false
134 # Without Swift, c-bak cannot run (in the gate at least).
135 c-bak: false
rajat290fc826d2017-11-21 00:06:00 +0530136
Mykola Yakovlievd0671482018-07-23 12:13:02 -0500137- job:
138 name: patrole-plugin-base
139 parent: patrole-base
140 description: |
Doug Hellmann4635c6a2018-09-08 22:52:43 -0400141 Patrole plugin job for admin and member roles which
142 runs RBAC tests for neutron-tempest-plugin APIs (if the plugin is installed).
Mykola Yakovlievd0671482018-07-23 12:13:02 -0500143 required-projects:
144 - name: openstack/tempest
145 - name: openstack/patrole
146 - name: openstack/neutron-tempest-plugin
147 vars:
148 devstack_localrc:
Doug Hellmann4635c6a2018-09-08 22:52:43 -0400149 TEMPEST_PLUGINS: "'/opt/stack/patrole /opt/stack/neutron-tempest-plugin'"
Mykola Yakovlievd0671482018-07-23 12:13:02 -0500150 devstack_plugins:
151 neutron: git://git.openstack.org/openstack/neutron.git
152 patrole: git://git.openstack.org/openstack/patrole.git
153 neutron-tempest-plugin: git://git.openstack.org/openstack/neutron-tempest-plugin.git
154 devstack_services:
155 tempest: true
156 neutron: true
157 neutron-segments: true
Mykola Yakovliev56bb7312018-08-16 18:34:10 -0500158 neutron-qos: true
Mykola Yakovlievd0671482018-07-23 12:13:02 -0500159
160- job:
161 name: patrole-plugin-member
162 parent: patrole-plugin-base
163 voting: false
164 vars:
165 devstack_localrc:
Mykola Yakovlieve0f35502018-09-26 18:26:57 -0500166 RBAC_TEST_ROLES: member
Mykola Yakovlievd0671482018-07-23 12:13:02 -0500167 tempest_test_regex: (?=.*PluginRbacTest)(^patrole_tempest_plugin\.tests\.api)
168
169- job:
170 name: patrole-plugin-admin
171 parent: patrole-plugin-base
172 voting: false
173 vars:
174 devstack_localrc:
Mykola Yakovlieve0f35502018-09-26 18:26:57 -0500175 RBAC_TEST_ROLES: admin
Mykola Yakovlievd0671482018-07-23 12:13:02 -0500176 tempest_test_regex: (?=.*PluginRbacTest)(^patrole_tempest_plugin\.tests\.api)
177
rajat290fc826d2017-11-21 00:06:00 +0530178- project:
Felipe Monteirof4cb74c2018-08-19 17:18:56 +0100179 templates:
Andreas Jaegera3c15da2018-09-09 06:39:31 +0200180 - openstack-cover-jobs
181 - openstack-lower-constraints-jobs
Felipe Monteirof4cb74c2018-08-19 17:18:56 +0100182 - openstack-python36-jobs
Doug Hellmann4635c6a2018-09-08 22:52:43 -0400183 - openstack-python-jobs
184 - openstack-python35-jobs
185 - check-requirements
Doug Hellmannd720bad2018-09-08 22:54:03 -0400186 - publish-openstack-docs-pti
187 - release-notes-jobs-python3
rajat290fc826d2017-11-21 00:06:00 +0530188 check:
189 jobs:
Hidekazu Nakamura211d4f92018-01-09 10:29:17 +0900190 - patrole-admin
191 - patrole-member
Felipe Monteiro22bb9b32018-08-28 21:17:58 -0400192 - patrole-member-rocky
Felipe Monteiro4c3ae9b2018-02-25 18:33:32 +0000193 - patrole-member-queens
194 - patrole-member-pike
Hidekazu Nakamura211d4f92018-01-09 10:29:17 +0900195 - patrole-py35-member
196 - patrole-multinode-admin
197 - patrole-multinode-member
Mykola Yakovlievd0671482018-07-23 12:13:02 -0500198 - patrole-plugin-admin
199 - patrole-plugin-member
rajat290fc826d2017-11-21 00:06:00 +0530200 gate:
201 jobs:
Hidekazu Nakamura211d4f92018-01-09 10:29:17 +0900202 - patrole-admin
203 - patrole-member
Felipe Monteiro1bee1422018-08-28 21:19:32 -0400204 periodic-stable:
205 jobs:
206 - patrole-member-rocky
207 - patrole-member-queens
208 - patrole-member-pike