Skip to content

Commit

Permalink
[Test operator] Fix skiplist generation
Browse files Browse the repository at this point in the history
The test_operator_cr is a copy of the cifmw_test_operator_tempest_config
therefore it does not contain a reference to the cifmw_test_operator_exclude_list
variable.

Because of that, we have to specify the value for excludeList directly
in the test_operator_cr.
  • Loading branch information
lpiwowar committed Apr 5, 2024
1 parent 9f2ace7 commit e672194
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions roles/test_operator/tasks/tempest-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,13 @@

- name: Set variable
ansible.builtin.set_fact:
cifmw_test_operator_tempest_include_list: "{{ list_allowed.allowed_tests | join('\n') }}"
test_operator_cr: >-
{{
test_operator_cr |
combine({'spec': {'tempestRun': { 'includeList':
list_allowed.allowed_tests | join('\n')
}}}, recursive=true)
}}
- name: Configuring tests to be skipped via skiplist
when: >
Expand All @@ -55,7 +61,13 @@

- name: Set variable
ansible.builtin.set_fact:
cifmw_test_operator_tempest_exclude_list: "{{ list_skipped.skipped_tests | join('\n') }}"
test_operator_cr: >-
{{
test_operator_cr |
combine({'spec': {'tempestRun': { 'excludeList':
list_skipped.skipped_tests | join('\n')
}}}, recursive=true)
}}
- name: Ensure a secret for the cifmw private key file exists
when:
Expand Down

0 comments on commit e672194

Please sign in to comment.