blob: 2e29ccfa79fa13971bfce2cd0d6046c4048270ca [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
28 tempest_concurrency: 2
29 tempest_test_regex: (?!.*\[.*\bslow\b.*\])(^patrole_tempest_plugin\.tests\.api)
30 tox_envlist: all-plugin
rajat290fc826d2017-11-21 00:06:00 +053031
32- job:
Felipe Monteiro25949b82017-11-29 23:25:34 +000033 name: patrole-base-multinode
Felipe Monteiro318fa3b2018-06-19 16:53:33 -040034 parent: tempest-multinode-full
35 description: |-
36 Patrole base job for multinode and "slow" tests where "slow" tests include:
37
38 * Tests that take more than ~30 seconds to run.
39 * Tests that experience spurious failures related to servers, volumes,
40 backups and similar resources failing to build.
rajat290fc826d2017-11-21 00:06:00 +053041 timeout: 7800
Felipe Monteiro318fa3b2018-06-19 16:53:33 -040042 branches:
43 - master
44 required-projects:
45 - openstack-infra/devstack-gate
46 - openstack/tempest
47 - openstack/patrole
rajat290fc826d2017-11-21 00:06:00 +053048 irrelevant-files:
49 - ^(test-|)requirements.txt$
50 - ^.*\.rst$
51 - ^doc/.*
52 - ^patrole/patrole_tempest_plugin/tests/unit/.*$
53 - ^releasenotes/.*
54 - ^setup.cfg$
Felipe Monteiro318fa3b2018-06-19 16:53:33 -040055 vars:
56 devstack_localrc:
57 TEMPEST_PLUGINS: "'{{ ansible_user_dir }}/src/git.openstack.org/openstack/patrole'"
58 devstack_plugins:
59 patrole: git://git.openstack.org/openstack/patrole.git
60 devstack_services:
61 tempest: true
62 neutron: true
63 tempest_concurrency: 1
64 tempest_test_regex: (?=.*\[.*\bslow\b.*\])(^patrole_tempest_plugin\.tests\.api)
65 tox_envlist: all-plugin
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:
73 RBAC_TEST_ROLE: 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:
Felipe Monteiro2fc29292018-06-15 18:26:27 -040086 RBAC_TEST_ROLE: member
rajat290fc826d2017-11-21 00:06:00 +053087
88- job:
Felipe Monteiro4c3ae9b2018-02-25 18:33:32 +000089 name: patrole-member-queens
90 parent: patrole-member
91 override-checkout: stable/queens
92
93- job:
94 name: patrole-member-pike
95 parent: patrole-member
96 override-checkout: stable/pike
97
98- job:
Hidekazu Nakamura211d4f92018-01-09 10:29:17 +090099 name: patrole-multinode-admin
Felipe Monteiro25949b82017-11-29 23:25:34 +0000100 parent: patrole-base-multinode
rajat290fc826d2017-11-21 00:06:00 +0530101 voting: false
Felipe Monteiro318fa3b2018-06-19 16:53:33 -0400102 vars:
103 devstack_localrc:
104 RBAC_TEST_ROLE: admin
rajat290fc826d2017-11-21 00:06:00 +0530105
106- job:
Hidekazu Nakamura211d4f92018-01-09 10:29:17 +0900107 name: patrole-multinode-member
Felipe Monteiro25949b82017-11-29 23:25:34 +0000108 parent: patrole-base-multinode
rajat290fc826d2017-11-21 00:06:00 +0530109 voting: false
Felipe Monteiro318fa3b2018-06-19 16:53:33 -0400110 vars:
111 devstack_localrc:
112 RBAC_TEST_ROLE: member
rajat290fc826d2017-11-21 00:06:00 +0530113
114- job:
Hidekazu Nakamura211d4f92018-01-09 10:29:17 +0900115 name: patrole-py35-member
Felipe Monteiro25949b82017-11-29 23:25:34 +0000116 parent: patrole-base
Felipe Monteiro2fc29292018-06-15 18:26:27 -0400117 description: Patrole py35 job for member role.
Felipe Monteiro097d94c2018-02-25 13:48:14 +0000118 vars:
119 devstack_localrc:
Felipe Monteiro2fc29292018-06-15 18:26:27 -0400120 # Use member for py35 because arguably negative testing is more
Felipe Monteiro097d94c2018-02-25 13:48:14 +0000121 # important than admin, which is already covered by patrole-admin job.
Felipe Monteiro2fc29292018-06-15 18:26:27 -0400122 RBAC_TEST_ROLE: member
Doug Hellmann8669a512018-03-22 17:42:03 -0400123 USE_PYTHON3: true
Felipe Monteiro097d94c2018-02-25 13:48:14 +0000124 devstack_services:
125 s-account: false
126 s-container: false
127 s-object: false
128 s-proxy: false
129 # Without Swift, c-bak cannot run (in the gate at least).
130 c-bak: false
rajat290fc826d2017-11-21 00:06:00 +0530131
Mykola Yakovlievd0671482018-07-23 12:13:02 -0500132- job:
133 name: patrole-plugin-base
134 parent: patrole-base
135 description: |
136 Patrole plugin job for admin and member roles which
137 runs RBAC tests for neutron-tempest-plugin APIs (if the plugin is installed).
138 required-projects:
139 - name: openstack/tempest
140 - name: openstack/patrole
141 - name: openstack/neutron-tempest-plugin
142 vars:
143 devstack_localrc:
144 TEMPEST_PLUGINS: "'/opt/stack/patrole
145 /opt/stack/neutron-tempest-plugin'"
146 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
Mykola Yakovliev56bb7312018-08-16 18:34:10 -0500154 neutron-qos: true
Mykola Yakovlievd0671482018-07-23 12:13:02 -0500155
156- job:
157 name: patrole-plugin-member
158 parent: patrole-plugin-base
159 voting: false
160 vars:
161 devstack_localrc:
162 RBAC_TEST_ROLE: member
163 tempest_test_regex: (?=.*PluginRbacTest)(^patrole_tempest_plugin\.tests\.api)
164
165- job:
166 name: patrole-plugin-admin
167 parent: patrole-plugin-base
168 voting: false
169 vars:
170 devstack_localrc:
171 RBAC_TEST_ROLE: admin
172 tempest_test_regex: (?=.*PluginRbacTest)(^patrole_tempest_plugin\.tests\.api)
173
rajat290fc826d2017-11-21 00:06:00 +0530174- project:
rajat290fc826d2017-11-21 00:06:00 +0530175 check:
176 jobs:
Hidekazu Nakamura211d4f92018-01-09 10:29:17 +0900177 - patrole-admin
178 - patrole-member
Felipe Monteiro4c3ae9b2018-02-25 18:33:32 +0000179 - patrole-member-queens
180 - patrole-member-pike
Hidekazu Nakamura211d4f92018-01-09 10:29:17 +0900181 - patrole-py35-member
182 - patrole-multinode-admin
183 - patrole-multinode-member
Doug Hellmann8669a512018-03-22 17:42:03 -0400184 - openstack-tox-lower-constraints
Mykola Yakovlievd0671482018-07-23 12:13:02 -0500185 - patrole-plugin-admin
186 - patrole-plugin-member
rajat290fc826d2017-11-21 00:06:00 +0530187 gate:
188 jobs:
Hidekazu Nakamura211d4f92018-01-09 10:29:17 +0900189 - patrole-admin
190 - patrole-member