Add tests to cover segments
This patch set adds tests to cver the neutron segments API [0].
Test lists, gets, creates, updates, and deletes segments.
Part of "Increase Neutron RBAC Coverage" initiative [1]
[0] https://developer.openstack.org/api-ref/network/v2/index.html#segments
[1] https://storyboard.openstack.org/#!/story/2002641
Story: 2002641
Task: 22306
Change-Id: I8eef0dcd5355d6212ead2bcb109f23ca0b613109
diff --git a/.zuul.yaml b/.zuul.yaml
index 21b5679..5701eb4 100644
--- a/.zuul.yaml
+++ b/.zuul.yaml
@@ -1,7 +1,9 @@
- job:
name: patrole-base
parent: devstack-tempest
- description: Patrole base job for admin and member roles.
+ description: |
+ Patrole base job for admin and member roles. This job executes RBAC tests
+ for all the "core" services that Tempest covers, excluding Swift.
required-projects:
- name: openstack/tempest
- name: openstack/patrole
@@ -17,7 +19,7 @@
- ^setup.cfg$
vars:
devstack_localrc:
- TEMPEST_PLUGINS: "'{{ ansible_user_dir }}/src/git.openstack.org/openstack/patrole'"
+ TEMPEST_PLUGINS: "'/opt/stack/patrole'"
devstack_plugins:
patrole: git://git.openstack.org/openstack/patrole.git
devstack_services:
@@ -127,6 +129,47 @@
# Without Swift, c-bak cannot run (in the gate at least).
c-bak: false
+- job:
+ name: patrole-plugin-base
+ parent: patrole-base
+ description: |
+ Patrole plugin job for admin and member roles which
+ runs RBAC tests for neutron-tempest-plugin APIs (if the plugin is installed).
+ required-projects:
+ - name: openstack/tempest
+ - name: openstack/patrole
+ - name: openstack/neutron-tempest-plugin
+ vars:
+ devstack_localrc:
+ TEMPEST_PLUGINS: "'/opt/stack/patrole
+ /opt/stack/neutron-tempest-plugin'"
+ devstack_plugins:
+ neutron: git://git.openstack.org/openstack/neutron.git
+ patrole: git://git.openstack.org/openstack/patrole.git
+ neutron-tempest-plugin: git://git.openstack.org/openstack/neutron-tempest-plugin.git
+ devstack_services:
+ tempest: true
+ neutron: true
+ neutron-segments: true
+
+- job:
+ name: patrole-plugin-member
+ parent: patrole-plugin-base
+ voting: false
+ vars:
+ devstack_localrc:
+ RBAC_TEST_ROLE: member
+ tempest_test_regex: (?=.*PluginRbacTest)(^patrole_tempest_plugin\.tests\.api)
+
+- job:
+ name: patrole-plugin-admin
+ parent: patrole-plugin-base
+ voting: false
+ vars:
+ devstack_localrc:
+ RBAC_TEST_ROLE: admin
+ tempest_test_regex: (?=.*PluginRbacTest)(^patrole_tempest_plugin\.tests\.api)
+
- project:
check:
jobs:
@@ -138,6 +181,8 @@
- patrole-multinode-admin
- patrole-multinode-member
- openstack-tox-lower-constraints
+ - patrole-plugin-admin
+ - patrole-plugin-member
gate:
jobs:
- patrole-admin