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
48 lines
1.5 KiB
YAML
48 lines
1.5 KiB
YAML
---
|
|
- when: "'shared_file_system' in refstack_target_programs"
|
|
block:
|
|
- name: Copy python script for parsing tempest.conf
|
|
copy:
|
|
src: parse_ini_get_tempestconf_overrides.py
|
|
dest: "{{ refstack_client_source }}/parse_ini_get_tempestconf_overrides.py"
|
|
|
|
- name: Parse share config from tempest_admin.conf
|
|
shell: |
|
|
python3 ./parse_ini_get_tempestconf_overrides.py \
|
|
backend_names,enable_protocols,multitenancy_enabled,multi_backend \
|
|
share \
|
|
etc/tempest_admin.conf
|
|
register: share_tempestconf_overrides
|
|
args:
|
|
chdir: "{{ refstack_client_source }}"
|
|
|
|
- name: Form share overrides for tempestconf
|
|
set_fact:
|
|
share_tempestconf_overrides: "{{ share_tempestconf_overrides.stdout_lines }}"
|
|
|
|
- name: Generate tempest configuration script
|
|
template:
|
|
src: generate-tempestconf.sh.j2
|
|
dest: "{{ refstack_client_source }}/generate-tempestconf.sh"
|
|
mode: 0744
|
|
|
|
- name: Generate tempest configuration file
|
|
shell: |
|
|
./generate-tempestconf.sh
|
|
args:
|
|
chdir: "{{ refstack_client_source }}"
|
|
executable: /bin/bash
|
|
changed_when: tempest_config_path is not defined
|
|
|
|
- name: Cat generated tempest.conf file
|
|
shell: |
|
|
cat ./etc/tempest.conf
|
|
args:
|
|
executable: /bin/bash
|
|
chdir: "{{ refstack_client_source }}"
|
|
changed_when: false
|
|
|
|
- name: Set path to newly generated tempest.conf
|
|
set_fact:
|
|
path_to_tempest_config: "{{ refstack_client_source }}/etc/tempest.conf"
|