Merge "Octavia: Add unit tests for ovn clustered DB"

This commit is contained in:
Zuul 2022-07-04 17:44:58 +00:00 committed by Gerrit Code Review
commit b249447d39
1 changed files with 18 additions and 0 deletions

View File

@ -110,6 +110,24 @@ eos
end
end
context 'with step 4 with clustered ovn db' do
before do
params.merge!({
:step => 4,
:ovn_db_host => '127.0.0.1',
:ovn_db_node_ips => ['192.0.2.11', '192.0.2.12'],
:ovn_db_clustered => true,
:ovn_nb_port => '6641',
})
end
it 'should set octavia provider ovn nb connection using tcp' do
is_expected.to contain_class('octavia::provider::ovn').with(
:ovn_nb_connection => 'tcp:192.0.2.11:6641,tcp:192.0.2.12:6641'
)
end
end
context 'with step 4 with ovn and unix socket (no ovn_nb_port)' do
before do
params.merge!({