patrole/.zuul.yaml
Ghanshyam Mann 7304b7c8d5 Add stable/wallaby job on master gate
stable/wallaby is not supported stable branch and
we are in Xena cycle development so adding wallaby
job on master so that we keep testing branchless
Patrole for all maintained stable branches.

Change-Id: If7106cdff4dbf30b549bf9e5e4fddf1ed5156070
2021-09-23 14:14:47 +00:00

247 lines
7.5 KiB
YAML

- job:
name: patrole-base
parent: devstack-tempest
description: |
Patrole base job for admin,member and reader roles. This job executes RBAC tests
for all the "core" services that Tempest covers, excluding Swift.
required-projects:
- name: opendev.org/openstack/tempest
- name: opendev.org/openstack/patrole
timeout: 7800
roles:
- zuul: opendev.org/openstack/devstack
# Define common irrelevant files to use everywhere else
irrelevant-files: &patrole-irrelevant-files
- ^(test-|)requirements.txt$
- ^.*\.rst$
- ^doc/.*
- ^etc/.*$
- ^patrole_tempest_plugin/tests/unit/.*$
- ^patrole_tempest_plugin/hacking/.*$
- ^releasenotes/.*
- ^setup.cfg$
vars:
tempest_plugins:
- patrole
devstack_plugins:
patrole: https://opendev.org/openstack/patrole.git
devstack_services:
tempest: true
neutron: true
neutron-trunk: true
tempest_test_regex: (?!.*\[.*\bslow\b.*\])(^patrole_tempest_plugin\.tests\.api)
# run the tempest all tox environment target with patrole regex
tox_envlist: all
# allows job to use the tempest version installed with devstack instead of pypi
# according to the requirements.txt
tox_extra_args: --sitepackages
- job:
name: patrole-base-multinode
parent: tempest-multinode-full-py3
description: |-
Patrole base job for multinode and "slow" tests where "slow" tests include:
* Tests that take more than ~30 seconds to run.
* Tests that experience spurious failures related to servers, volumes,
backups and similar resources failing to build.
timeout: 7800
branches:
- master
required-projects:
- opendev.org/openstack/devstack-gate
- opendev.org/openstack/tempest
- opendev.org/openstack/patrole
irrelevant-files: *patrole-irrelevant-files
vars:
tempest_plugins:
- patrole
devstack_plugins:
patrole: https://opendev.org/openstack/patrole.git
devstack_services:
tempest: true
neutron: true
tempest_concurrency: 1
tempest_test_regex: (?=.*\[.*\bslow\b.*\])(^patrole_tempest_plugin\.tests\.api)
tox_envlist: all
tox_extra_args: --sitepackages
- job:
name: patrole-admin
parent: patrole-base
description: Patrole job for admin role.
vars:
devstack_localrc:
RBAC_TEST_ROLES: admin
# https://storyboard.openstack.org/#!/story/2009048
tempest_exclude_regex: patrole_tempest_plugin.tests.api.volume.test_volume_actions_rbac.VolumesActionsV3RbacTest.test_force_detach_volume_from_instance
- job:
name: patrole-member
parent: patrole-base
description: Patrole job for member role.
# This currently works from stable/pike onward.
branches: ^(?!stable/ocata).*$
vars:
devstack_localrc:
RBAC_TEST_ROLES: member
# https://storyboard.openstack.org/#!/story/2009216
tempest_exclude_regex: patrole_tempest_plugin.tests.api.volume.test_volume_types_extra_specs_rbac.VolumeTypesExtraSpecsRbacTest.test_show_volume_type_extra_specs
- job:
name: patrole-reader
parent: patrole-base
description: Patrole job for reader role.
# This currently works from stable/stein onward.
branches: ^(?!stable/(ocata|pike|queens|rocky)).*$
vars:
devstack_localrc:
RBAC_TEST_ROLES: reader
# https://storyboard.openstack.org/#!/story/2009216
tempest_exclude_regex: patrole_tempest_plugin.tests.api.volume.test_volume_types_extra_specs_rbac.VolumeTypesExtraSpecsRbacTest.test_show_volume_type_extra_specs
- job:
name: patrole-member-wallaby
parent: patrole-member
override-checkout: stable/wallaby
- job:
name: patrole-member-victoria
parent: patrole-member
override-checkout: stable/victoria
- job:
name: patrole-member-ussuri
parent: patrole-member
nodeset: openstack-single-node-bionic
override-checkout: stable/ussuri
vars:
# https://storyboard.openstack.org/#!/story/2009048
tempest_exclude_regex: patrole_tempest_plugin.tests.api.volume.test_volume_actions_rbac.VolumesActionsV3RbacTest.test_force_detach_volume_from_instance
- job:
name: patrole-multinode-admin
parent: patrole-base-multinode
voting: false
vars:
devstack_localrc:
RBAC_TEST_ROLES: admin
- job:
name: patrole-multinode-member
parent: patrole-base-multinode
voting: false
vars:
devstack_localrc:
RBAC_TEST_ROLES: member
- job:
name: patrole-multinode-reader
parent: patrole-base-multinode
voting: false
vars:
devstack_localrc:
RBAC_TEST_ROLES: reader
- job:
name: patrole-py35-member
parent: patrole-base
description: Patrole py35 job for member role.
vars:
devstack_localrc:
# Use member for py35 because arguably negative testing is more
# important than admin, which is already covered by patrole-admin job.
RBAC_TEST_ROLES: member
USE_PYTHON3: true
devstack_services:
s-account: false
s-container: false
s-object: false
s-proxy: false
# Without Swift, c-bak cannot run (in the gate at least).
c-bak: false
- job:
name: patrole-extension-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).
Covers Neutron extension functionality only. Should not be used for
supporting Neutron plugins like fwaas.
required-projects:
- name: opendev.org/openstack/tempest
- name: opendev.org/openstack/patrole
- name: opendev.org/openstack/neutron-tempest-plugin
vars:
tempest_plugins:
- patrole
- neutron-tempest-plugin
devstack_plugins:
neutron: https://opendev.org/openstack/neutron.git
patrole: https://opendev.org/openstack/patrole.git
neutron-tempest-plugin: https://opendev.org/openstack/neutron-tempest-plugin.git
devstack_services:
tempest: true
neutron: true
neutron-segments: true
neutron-qos: true
tempest_test_regex: (?=.*ExtRbacTest)(^patrole_tempest_plugin\.tests\.api)
- job:
name: patrole-extension-admin
parent: patrole-extension-base
voting: false
vars:
devstack_localrc:
RBAC_TEST_ROLES: admin
- job:
name: patrole-extension-member
parent: patrole-extension-base
voting: false
vars:
devstack_localrc:
RBAC_TEST_ROLES: member
- job:
name: patrole-extension-reader
parent: patrole-extension-base
voting: false
vars:
devstack_localrc:
RBAC_TEST_ROLES: reader
- project:
templates:
- openstack-cover-jobs
- openstack-python3-xena-jobs
- check-requirements
- publish-openstack-docs-pti
- release-notes-jobs-python3
check:
jobs:
- patrole-admin
- patrole-member
- patrole-reader
- patrole-member-wallaby
- patrole-member-victoria
- patrole-member-ussuri
- patrole-multinode-admin
- patrole-multinode-member
- patrole-multinode-reader
- patrole-extension-admin
- patrole-extension-member
- patrole-extension-reader
gate:
jobs:
- patrole-admin
- patrole-member
- patrole-reader
periodic-stable:
jobs:
- patrole-member-wallaby
- patrole-member-victoria
- patrole-member-ussuri