Add a job for tempest plugins
The job will be useful in cases we want to test if the generated tempest.conf works with certain tempest plugins. The job runs heat-tempest-plugin for now. Story: 2005456 Task: 30510 Change-Id: I2640b07263cdd3a8282170fd764c5f31611125ec
This commit is contained in:
parent
e0d5dd6725
commit
1d51de57d3
33
.zuul.yaml
33
.zuul.yaml
@ -15,6 +15,7 @@
|
|||||||
- python-tempestconf-tempest-devstack-demo-py3
|
- python-tempestconf-tempest-devstack-demo-py3
|
||||||
- python-tempestconf-tempest-packstack-admin
|
- python-tempestconf-tempest-packstack-admin
|
||||||
- python-tempestconf-tempest-packstack-demo
|
- python-tempestconf-tempest-packstack-demo
|
||||||
|
- python-tempestconf-tempest-devstack-admin-plugins
|
||||||
- tripleo-ci-centos-7-scenario002-standalone
|
- tripleo-ci-centos-7-scenario002-standalone
|
||||||
- tripleo-ci-centos-7-standalone-os-tempest
|
- tripleo-ci-centos-7-standalone-os-tempest
|
||||||
- refstack-client-devstack-tempestconf
|
- refstack-client-devstack-tempestconf
|
||||||
@ -26,6 +27,7 @@
|
|||||||
- python-tempestconf-tempest-devstack-demo-py3
|
- python-tempestconf-tempest-devstack-demo-py3
|
||||||
- python-tempestconf-tempest-packstack-admin
|
- python-tempestconf-tempest-packstack-admin
|
||||||
- python-tempestconf-tempest-packstack-demo
|
- python-tempestconf-tempest-packstack-demo
|
||||||
|
- python-tempestconf-tempest-devstack-admin-plugins
|
||||||
- tripleo-ci-centos-7-scenario002-standalone
|
- tripleo-ci-centos-7-scenario002-standalone
|
||||||
- tripleo-ci-centos-7-standalone-os-tempest
|
- tripleo-ci-centos-7-standalone-os-tempest
|
||||||
- refstack-client-devstack-tempestconf
|
- refstack-client-devstack-tempestconf
|
||||||
@ -35,6 +37,8 @@
|
|||||||
parent: devstack
|
parent: devstack
|
||||||
description: Base job for python-tempestconf on a devstack environment
|
description: Base job for python-tempestconf on a devstack environment
|
||||||
required-projects:
|
required-projects:
|
||||||
|
- openstack/heat
|
||||||
|
- openstack/heat-tempest-plugin
|
||||||
- openstack/manila
|
- openstack/manila
|
||||||
- openstack/manila-ui
|
- openstack/manila-ui
|
||||||
- openstack/manila-tempest-plugin
|
- openstack/manila-tempest-plugin
|
||||||
@ -51,11 +55,17 @@
|
|||||||
'{{ devstack_base_dir }}/tempest/etc/tempest.conf': logs
|
'{{ devstack_base_dir }}/tempest/etc/tempest.conf': logs
|
||||||
'{{ zuul.project.src_dir }}/etc/accounts.yaml': logs
|
'{{ zuul.project.src_dir }}/etc/accounts.yaml': logs
|
||||||
devstack_plugins:
|
devstack_plugins:
|
||||||
|
heat: https://opendev.org/openstack/heat
|
||||||
manila: https://opendev.org/openstack/manila
|
manila: https://opendev.org/openstack/manila
|
||||||
manila-ui: https://opendev.org/openstack/manila-ui
|
manila-ui: https://opendev.org/openstack/manila-ui
|
||||||
devstack_localrc:
|
devstack_localrc:
|
||||||
MANILA_USE_UWSGI: False
|
MANILA_USE_UWSGI: False
|
||||||
MANILA_USE_MOD_WSGI: False
|
MANILA_USE_MOD_WSGI: False
|
||||||
|
devstack_services:
|
||||||
|
h-eng: True
|
||||||
|
h-api: True
|
||||||
|
h-api-cfn: True
|
||||||
|
h-api-cw: True
|
||||||
irrelevant-files:
|
irrelevant-files:
|
||||||
- config_tempest/tests/.*$
|
- config_tempest/tests/.*$
|
||||||
- ^doc/.*$
|
- ^doc/.*$
|
||||||
@ -90,6 +100,29 @@
|
|||||||
- ^releasenotes/.*$
|
- ^releasenotes/.*$
|
||||||
- ^.*\.rst$
|
- ^.*\.rst$
|
||||||
|
|
||||||
|
- job:
|
||||||
|
name: python-tempestconf-tempest-devstack-admin-plugins
|
||||||
|
parent: python-tempestconf-devstack-base
|
||||||
|
description: |
|
||||||
|
Tempest job for python-tempestconf on a devstack environment as the admin user.
|
||||||
|
run: playbooks/python-tempestconf-tempest-devstack.yaml
|
||||||
|
vars:
|
||||||
|
test_regex:
|
||||||
|
- 'heat_tempest_plugin'
|
||||||
|
black_regex:
|
||||||
|
- 'heat_tempest_plugin.tests.scenario.test_volumes.VolumeBackupRestoreIntegrationTest.test_cinder_volume_create_backup_restore'
|
||||||
|
- 'heat_tempest_plugin.tests.scenario.test_server_software_config.SoftwareConfigIntegrationTest.test_server_software_config'
|
||||||
|
- 'heat_tempest_plugin.tests.scenario.test_server_signal.ServerSignalIntegrationTest.test_server_signal_userdata_format_software_config'
|
||||||
|
- 'heat_tempest_plugin.tests.scenario.test_aodh_alarm.AodhAlarmTest.test_alarm'
|
||||||
|
- 'heat_tempest_plugin.tests.scenario.test_server_cfn_init.CfnInitIntegrationTest.test_server_cfn_init'
|
||||||
|
- 'heat_tempest_plugin.tests.scenario.test_base_resources.BasicResourcesTest.test_base_resources_integration'
|
||||||
|
- 'heat_tempest_plugin.tests.functional.test_os_wait_condition.OSWaitCondition.test_create_stack_with_multi_signal_waitcondition'
|
||||||
|
user: admin
|
||||||
|
cloud_user: devstack-admin
|
||||||
|
plugins_paths:
|
||||||
|
- "~/{{ zuul.projects['opendev.org/openstack/heat-tempest-plugin'].src_dir }}"
|
||||||
|
tempest_concurrency: 2
|
||||||
|
|
||||||
- job:
|
- job:
|
||||||
name: python-tempestconf-tempest-devstack-admin
|
name: python-tempestconf-tempest-devstack-admin
|
||||||
parent: python-tempestconf-devstack-base
|
parent: python-tempestconf-devstack-base
|
||||||
|
@ -42,3 +42,19 @@
|
|||||||
- name: Run Tempest Tests
|
- name: Run Tempest Tests
|
||||||
include_role:
|
include_role:
|
||||||
name: run-tempest
|
name: run-tempest
|
||||||
|
when: plugins_paths is not defined
|
||||||
|
- block:
|
||||||
|
- name: Install tempest plugins
|
||||||
|
include_role:
|
||||||
|
name: install-plugins
|
||||||
|
- name: Setup Tempest Run Directory
|
||||||
|
include_role:
|
||||||
|
name: setup-tempest-run-dir
|
||||||
|
- name: Run Tempest Tests including plugins
|
||||||
|
include_role:
|
||||||
|
name: run-tempest
|
||||||
|
vars:
|
||||||
|
tox_envlist: "all"
|
||||||
|
tempest_test_regex: "{{ test_regex|join('|') }}"
|
||||||
|
tempest_black_regex: "{{ black_regex|join('|') }}"
|
||||||
|
when: plugins_paths is defined
|
||||||
|
19
roles/install-plugins/README.rst
Normal file
19
roles/install-plugins/README.rst
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
Install tempest plugins
|
||||||
|
=======================
|
||||||
|
|
||||||
|
The role installs tempest plugins via tox inside venv-tempest virtual
|
||||||
|
environment.
|
||||||
|
|
||||||
|
**Role variables**
|
||||||
|
|
||||||
|
.. zuul:rolevar:: plugins_paths
|
||||||
|
:type: list
|
||||||
|
|
||||||
|
A list of paths to tempest plugins which will be installed together with
|
||||||
|
Tempest (in the same virtual environment).
|
||||||
|
|
||||||
|
.. zuul:rolevar:: devstack_base_dir
|
||||||
|
:type: string
|
||||||
|
:default: /opt/stack
|
||||||
|
|
||||||
|
The devstack base directory.
|
1
roles/install-plugins/defaults/main.yaml
Normal file
1
roles/install-plugins/defaults/main.yaml
Normal file
@ -0,0 +1 @@
|
|||||||
|
devstack_base_dir: /opt/stack
|
16
roles/install-plugins/tasks/main.yaml
Normal file
16
roles/install-plugins/tasks/main.yaml
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
- name: Prepare tempest venv
|
||||||
|
command: tox -r --notest -efull
|
||||||
|
args:
|
||||||
|
chdir: "{{devstack_base_dir}}/tempest"
|
||||||
|
|
||||||
|
- name: Install plugins
|
||||||
|
command: tox -evenv-tempest -- pip install {{ item }}
|
||||||
|
with_items: "{{ plugins_paths }}"
|
||||||
|
args:
|
||||||
|
chdir: "{{devstack_base_dir}}/tempest"
|
||||||
|
when: plugins_paths is defined
|
||||||
|
|
||||||
|
- name: List installed tempest plugins
|
||||||
|
command: tox -evenv-tempest -- tempest list-plugins
|
||||||
|
args:
|
||||||
|
chdir: "{{devstack_base_dir}}/tempest"
|
Loading…
x
Reference in New Issue
Block a user