From d65c6ab9a704a8b5fdc66ea314401c3f9791f256 Mon Sep 17 00:00:00 2001 From: Takashi Kajinami Date: Mon, 7 Feb 2022 11:14:09 +0900 Subject: [PATCH] Support [load_balancer] test_with_noop ... so that we can set this parameter in our integration tests, which use noop drivers. Change-Id: Ia2137a49a0610924d9a476c62ae31270a5a9acf9 --- manifests/init.pp | 4 ++++ .../notes/load_balancer-test_with_noop-7ea94864e5a4634e.yaml | 4 ++++ spec/classes/tempest_init_spec.rb | 1 + 3 files changed, 9 insertions(+) create mode 100644 releasenotes/notes/load_balancer-test_with_noop-7ea94864e5a4634e.yaml diff --git a/manifests/init.pp b/manifests/init.pp index 0e05121c..cd483765 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -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 } diff --git a/releasenotes/notes/load_balancer-test_with_noop-7ea94864e5a4634e.yaml b/releasenotes/notes/load_balancer-test_with_noop-7ea94864e5a4634e.yaml new file mode 100644 index 00000000..f7679bbb --- /dev/null +++ b/releasenotes/notes/load_balancer-test_with_noop-7ea94864e5a4634e.yaml @@ -0,0 +1,4 @@ +--- +features: + - | + The new ``tempest::load_balancer_test_with_noop`` parameter has been added. diff --git a/spec/classes/tempest_init_spec.rb b/spec/classes/tempest_init_spec.rb index 6a3ba8eb..98a80b68 100644 --- a/spec/classes/tempest_init_spec.rb +++ b/spec/classes/tempest_init_spec.rb @@ -279,6 +279,7 @@ describe 'tempest' do is_expected.to contain_tempest_config('load_balancer/admin_role').with(:value => '') is_expected.to contain_tempest_config('load_balancer/observer_role').with(:value => '') is_expected.to contain_tempest_config('load_balancer/global_observer_role').with(:value => '') + is_expected.to contain_tempest_config('load_balancer/test_with_noop').with(:value => '') 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(