ovn: Add more tunables related to OVN DB connection
Change-Id: I9542ca07f8fd7da442ce3d6aab0f88286db021ad (cherry picked from commit2a6d6b8b4d) (cherry picked from commitd64492c34a)
This commit is contained in:
@@ -13,6 +13,9 @@ describe 'octavia::provider::ovn' do
|
||||
it { is_expected.to contain_octavia_config('ovn/ovn_nb_private_key').with_value('<SERVICE DEFAULT>') }
|
||||
it { is_expected.to contain_octavia_config('ovn/ovn_nb_certificate').with_value('<SERVICE DEFAULT>') }
|
||||
it { is_expected.to contain_octavia_config('ovn/ovn_nb_ca_cert').with_value('<SERVICE DEFAULT>') }
|
||||
it { is_expected.to contain_octavia_config('ovn/ovsdb_connection_timeout').with_value('<SERVICE DEFAULT>') }
|
||||
it { is_expected.to contain_octavia_config('ovn/ovsdb_retry_max_interval').with_value('<SERVICE DEFAULT>') }
|
||||
it { is_expected.to contain_octavia_config('ovn/ovsdb_probe_interval').with_value('<SERVICE DEFAULT>') }
|
||||
|
||||
it { is_expected.to contain_package('ovn-octavia-provider').with(
|
||||
:ensure => 'present',
|
||||
@@ -24,10 +27,13 @@ describe 'octavia::provider::ovn' do
|
||||
context 'with specific parameters' do
|
||||
before do
|
||||
params.merge!({
|
||||
:ovn_nb_connection => 'tcp:127.0.0.1:6641',
|
||||
:ovn_nb_private_key => '/foo.key',
|
||||
:ovn_nb_certificate => '/foo.pem',
|
||||
:ovn_nb_ca_cert => '/ca_foo.pem'
|
||||
:ovn_nb_connection => 'tcp:127.0.0.1:6641',
|
||||
:ovn_nb_private_key => '/foo.key',
|
||||
:ovn_nb_certificate => '/foo.pem',
|
||||
:ovn_nb_ca_cert => '/ca_foo.pem',
|
||||
:ovsdb_connection_timeout => 180,
|
||||
:ovsdb_retry_max_interval => 180,
|
||||
:ovsdb_probe_interval => 60000,
|
||||
})
|
||||
end
|
||||
|
||||
@@ -35,6 +41,9 @@ describe 'octavia::provider::ovn' do
|
||||
it { is_expected.to contain_octavia_config('ovn/ovn_nb_private_key').with_value('/foo.key') }
|
||||
it { is_expected.to contain_octavia_config('ovn/ovn_nb_certificate').with_value('/foo.pem') }
|
||||
it { is_expected.to contain_octavia_config('ovn/ovn_nb_ca_cert').with_value('/ca_foo.pem') }
|
||||
it { is_expected.to contain_octavia_config('ovn/ovsdb_connection_timeout').with_value(180) }
|
||||
it { is_expected.to contain_octavia_config('ovn/ovsdb_retry_max_interval').with_value(180) }
|
||||
it { is_expected.to contain_octavia_config('ovn/ovsdb_probe_interval').with_value(60000) }
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user