
Run tests from all main target programs, for that a new refstack_target_programs var is defined. The var will cause the role to execute 'refstack-client test' command for every given target program. Collect whole .stestr dir in the zuul jobs as there will be multiple output files (for every given target program). Bump the default guideline to the latest one (2020.11). The patch also fixes a few style mistakes/typos. Change-Id: I82ba0bf26b994d4e21acabcb015d798081a33da2
31 lines
1.1 KiB
YAML
31 lines
1.1 KiB
YAML
---
|
|
- hosts: all
|
|
roles:
|
|
# the role is inherited from openstack/devstack project
|
|
- run-devstack
|
|
|
|
- hosts: tempest
|
|
vars:
|
|
devstack_base_dir: "/opt/stack"
|
|
tasks:
|
|
# NOTE: devstack jobs are failing on Run Tempest task
|
|
# it is because tox command is not found. Adding 'ensure-tox'
|
|
# role here to make sure that tox is installed and it
|
|
# will not break the tempest tests.
|
|
- name: Ensure tox is installed
|
|
include_role:
|
|
name: ensure-tox
|
|
vars:
|
|
ensure_global_symlinks: true
|
|
|
|
- include_vars: ../defaults/main.yaml
|
|
|
|
- name: Run ansible-role-refstack-client
|
|
include_tasks: ../tasks/main.yaml
|
|
vars:
|
|
refstack_client_source: "/home/zuul/{{ zuul.projects['opendev.org/osf/refstack-client'].src_dir }}"
|
|
tempestconf_source: "/home/zuul/{{ zuul.projects['opendev.org/osf/python-tempestconf'].src_dir }}"
|
|
source_credentials: "{{ devstack_base_dir }}/devstack/openrc demo demo"
|
|
source_admin_credentials: "{{ devstack_base_dir }}/devstack/openrc admin admin"
|
|
additional_tempestconf_params: "auth.tempest_roles Member object-storage.operator_role Member"
|