Setup featureset052 to run tempest skipped tests
Load the skipped tests in a variable that can be used to execute only those tests when tempest_run_skipped is set to true. Required in order to run a featureset021 like job in standalone. Depends-On: https://review.opendev.org/724253 Change-Id: I35d5583403a82b9ca2d840a1adf0358e2de3ea46
This commit is contained in:
parent
bba5a4d21f
commit
ae2d3c5990
|
@ -31,11 +31,26 @@ tempest_undercloud: true
|
|||
tempest_overcloud: false
|
||||
tempest_workers: 2
|
||||
tempest_os_cloud: standalone
|
||||
tempest_whitelist:
|
||||
|
||||
# This is only if we want to execute the tests on the skiplist
|
||||
# TODO(arxcruz): This needs to be modified when we have the tempest skiplist
|
||||
# tool
|
||||
skip_test_file: "{{ playbook_dir | dirname }}/vars/tempest_skip_{{ release | default('master') }}.yml"
|
||||
skip_list_tests: "{{ lookup('file', skip_test_file) | from_yaml }}"
|
||||
|
||||
tempest_tests_skipped: "{{ skip_list_tests.known_failures | json_query('[?undercloud != `true`].test') }}"
|
||||
tempest_default_whitelist:
|
||||
- 'tempest.scenario.test_minimum_basic.TestMinimumBasicScenario'
|
||||
- 'tempest.scenario.test_network_basic_ops.TestNetworkBasicOps'
|
||||
- 'tempest.scenario.test_volume_boot_pattern.TestVolumeBootPattern'
|
||||
|
||||
tempest_whitelist: >-
|
||||
{% if tempest_run_skipped | default(false) | bool -%}
|
||||
{{ tempest_tests_skipped }}
|
||||
{%- else -%}
|
||||
{{ tempest_default_whitelist }}
|
||||
{%- endif -%}
|
||||
|
||||
# Settings for os_tempest
|
||||
run_tempest: >-
|
||||
{% if release not in ['pike', 'queens', 'rocky', 'stein'] -%}
|
||||
|
|
Loading…
Reference in New Issue