Ensure tempest enclude/exclude lists are idempotent

Using union since ansible-core 2.16 will result in non-determenistic
results which would mean that tempest test list might have random order
result in a changed tasks while templating these lists.

Change-Id: I8aea6670845607a925ca67994ee7ae835ef31be3
This commit is contained in:
Dmitriy Rabotyagov 2024-07-22 16:23:49 +02:00 committed by Jonathan Rosser
parent ccb993c78d
commit 6b9c22c380

View File

@ -160,8 +160,8 @@ _tempest_test_gathered_excludelist: "{{ query('vars', *query('varnames', '^' ~ t
# maintain backward compatibility by combining the original role default
# with any dynamically gathered variables
_tempest_test_includelist: "{{ tempest_test_includelist | union(_tempest_test_gathered_includelist) }}"
_tempest_test_excludelist: "{{ tempest_test_excludelist | union(_tempest_test_gathered_excludelist) }}"
_tempest_test_includelist: "{{ tempest_test_includelist + _tempest_test_gathered_includelist }}"
_tempest_test_excludelist: "{{ tempest_test_excludelist + _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 }}"