File tree Expand file tree Collapse file tree
roles/telemetry_chargeback Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ openstack_cmd: "openstack"
66cloudkitty_debug : false
77cloudkitty_debug_dir : " {{ (cloudkitty_debug | bool) | ternary(artifacts_dir_zuul + '/debug_ck_db', '') }}"
88
9+ # Directory paths
910logs_dir_zuul : " {{ cifmw_basedir }}/logs"
1011artifacts_dir_zuul : " {{ cifmw_basedir }}/artifacts"
1112cert_dir : " {{ cifmw_basedir }}/ck-certs"
@@ -29,4 +30,4 @@ lookback: 6
2930limit : 50
3031
3132# List of test scenario files to run
32- cloudkitty_test_scenarios : []
33+ cloudkitty_test_scenarios : ["test_static.yml" , "test_dyn_basic.yml" ]
Original file line number Diff line number Diff line change 55- name : " Setup Loki Environment"
66 ansible.builtin.include_tasks : " setup_loki_env.yml"
77
8- - name : " Find test files"
9- ansible.builtin.find :
10- paths : " {{ cloudkitty_scenario_dir }}"
11- patterns : " test_*.yml"
12- register : found_files_raw
13-
14- - name : " Extract only the filenames into a clean list"
15- ansible.builtin.set_fact :
16- found_files : " {{ found_files_raw.files | map(attribute='path') | map('basename') | list }}"
17-
188- name : " Determine which scenarios to run"
199 ansible.builtin.set_fact :
20- scenarios_to_run : " {{ (cloudkitty_test_scenarios if cloudkitty_test_scenarios | length > 0 else found_files) | map('regex_replace', '\\ .yml$', '') | list }}"
21-
10+ scenarios_to_run : " {{ cloudkitty_test_scenarios | map('regex_replace', '\\ .yml$', '') | list }}"
2211
2312- name : " Run scenario file through workflow"
2413 block :
You can’t perform that action at this time.
0 commit comments