f448d8c15d
Run tests of all target programs we have. The patch enables required services in devstack (environment the tests are executed on in Zuul) and implements a logic when share config options which can be discovered only by using admin credentials are passed to the second tempestconf execution (with demo creds) so that they are set in tempest.conf used to run refstack-client. Change-Id: I79b7611f47d7d67d439e24c2427ee59870732172
33 lines
1.3 KiB
YAML
33 lines
1.3 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"
|
|
# not all backends support shrinking shares, LVM one which is used in
|
|
# this job does not support the shrinking feature
|
|
additional_tempestconf_params: "auth.tempest_roles Member object-storage.operator_role Member share.run_shrink_tests False"
|