Support [load_balancer] test_with_noop

... so that we can set this parameter in our integration tests, which
use noop drivers.

Change-Id: Ia2137a49a0610924d9a476c62ae31270a5a9acf9
This commit is contained in:
Takashi Kajinami 2022-02-07 11:14:09 +09:00
parent e919c537f9
commit d65c6ab9a7
3 changed files with 9 additions and 0 deletions

View File

@ -225,6 +225,8 @@
# Defaults to $::os_service_default
# [*load_balancer_global_observer_role*]
# Defaults to $::os_service_default
# [*load_balancer_test_with_noop*]
# Defaults to $::os_service_default
#
# DEPREACTED PARAMETERS
# [*img_dir*]
@ -382,6 +384,7 @@ class tempest(
$load_balancer_admin_role = $::os_service_default,
$load_balancer_observer_role = $::os_service_default,
$load_balancer_global_observer_role = $::os_service_default,
$load_balancer_test_with_noop = $::os_service_default,
# DEPRECATED PARAMETERS
$img_dir = undef,
$panko_available = undef,
@ -623,6 +626,7 @@ class tempest(
'load_balancer/admin_role': value => $load_balancer_admin_role;
'load_balancer/observer_role': value => $load_balancer_observer_role;
'load_balancer/global_observer_role': value => $load_balancer_global_observer_role;
'load_balancer/test_with_noop': value => $load_balancer_test_with_noop;
}
oslo::concurrency { 'tempest_config': lock_path => $lock_path }

View File

@ -0,0 +1,4 @@
---
features:
- |
The new ``tempest::load_balancer_test_with_noop`` parameter has been added.

View File

@ -279,6 +279,7 @@ describe 'tempest' do
is_expected.to contain_tempest_config('load_balancer/admin_role').with(:value => '<SERVICE DEFAULT>')
is_expected.to contain_tempest_config('load_balancer/observer_role').with(:value => '<SERVICE DEFAULT>')
is_expected.to contain_tempest_config('load_balancer/global_observer_role').with(:value => '<SERVICE DEFAULT>')
is_expected.to contain_tempest_config('load_balancer/test_with_noop').with(:value => '<SERVICE DEFAULT>')
is_expected.to contain_tempest_config('whitebox/db_uri').with(:value => nil)
is_expected.to contain_tempest_config('cli/cli_dir').with(:value => nil)
is_expected.to contain_oslo__concurrency('tempest_config').with(