6fba3fdfa1
The role reads the OS_* variables set by devstack through openrc for the specified user and project and exports them as the os_env_vars fact. It is meant to be used as a porting aid for the jobs of the non-unified *clients only. This is useful to run functional tests against the generated environment. A slightly less generic version of this role is currently used by python-cinderclient and python-novaclient (get-os-environment). In order to make this more useful, call it from devstack-tox-functional and derived jobs. The role execution is disabled by default and it can be enabled by setting openrc_enable_export: true. Change-Id: I15f5a187dbc54c82e8f4a08b4bb58d56e0d66961
13 lines
342 B
YAML
13 lines
342 B
YAML
- hosts: all
|
|
roles:
|
|
- run-devstack
|
|
# Run bindep and test-setup after devstack so that they won't interfere
|
|
- role: bindep
|
|
bindep_profile: test
|
|
bindep_dir: "{{ zuul_work_dir }}"
|
|
- test-setup
|
|
- ensure-tox
|
|
- get-devstack-os-environment
|
|
- role: tox
|
|
tox_environment: "{{ os_env_vars|default({}) }}"
|