Allow tempest_tempest_conf_overrides to be defined in many variables
Combine all variables starting with tempest_tempest_conf_overrides to give a complete set of configuration to tempest when multiple different test scenarios are enabled at the same time. Change-Id: Iba5e061d1682d16c0516249f628f948a20580df8
This commit is contained in:
parent
8fc8f9021b
commit
00965ed13e
@ -342,6 +342,7 @@ tempest_projects:
|
|||||||
- "tempest"
|
- "tempest"
|
||||||
|
|
||||||
## Tunable overrides
|
## Tunable overrides
|
||||||
|
tempest_tempest_conf_search_overrides_pattern: 'tempest_tempest_conf_overrides'
|
||||||
tempest_tempest_conf_overrides: {}
|
tempest_tempest_conf_overrides: {}
|
||||||
|
|
||||||
## The name of cloud from clouds.yaml
|
## The name of cloud from clouds.yaml
|
||||||
|
@ -37,7 +37,7 @@
|
|||||||
owner: "root"
|
owner: "root"
|
||||||
group: "root"
|
group: "root"
|
||||||
mode: "0644"
|
mode: "0644"
|
||||||
config_overrides: "{{ tempest_tempest_conf_overrides }}"
|
config_overrides: "{{ _tempest_tempest_conf_overrides_gathered }}"
|
||||||
config_type: "ini"
|
config_type: "ini"
|
||||||
register: copy_tempest_config
|
register: copy_tempest_config
|
||||||
when: not tempest_use_tempestconf | bool
|
when: not tempest_use_tempestconf | bool
|
||||||
|
@ -143,3 +143,6 @@ _tempest_test_gathered_excludelist: "{{ query('vars', *query('varnames', '^' ~ t
|
|||||||
# with any dynamically gathered variables
|
# with any dynamically gathered variables
|
||||||
_tempest_test_includelist: "{{ tempest_test_includelist | union(_tempest_test_gathered_includelist) }}"
|
_tempest_test_includelist: "{{ tempest_test_includelist | union(_tempest_test_gathered_includelist) }}"
|
||||||
_tempest_test_excludelist: "{{ tempest_test_excludelist | union(_tempest_test_gathered_excludelist) }}"
|
_tempest_test_excludelist: "{{ tempest_test_excludelist | union(_tempest_test_gathered_excludelist) }}"
|
||||||
|
|
||||||
|
# gather tempest config overrides from any variables starting wth the defined search pattern
|
||||||
|
_tempest_tempest_conf_overrides_gathered: "{{ query('vars', *query('varnames', '^' ~ tempest_tempest_conf_search_overrides_pattern)) | combine }}"
|
||||||
|
Loading…
Reference in New Issue
Block a user