[OVN][FT] Wait until virtual parents are written
In "test_virtual_port_host_update", wait until VIP virtual parents have been updated in the SB "Port_Binding" register. Then, the test should check if "update_virtual_port_host" has been called or not. Closes-Bug: #1971672 Change-Id: Ifa04bb59f4b9acd308299cfa44f2316394d14505
This commit is contained in:
parent
dbe68a7454
commit
494c477b21
|
@ -353,12 +353,14 @@ class TestNBDbMonitor(base.TestOVNFunctionalBase):
|
|||
# This test checks that the VIP "Port_Binding" register gets the type
|
||||
# and the corresponding "virtual-parents".
|
||||
self._check_port_binding_type(vip['id'], ovn_const.LSP_TYPE_VIRTUAL)
|
||||
self._check_port_virtual_parents(vip['id'], port['id'])
|
||||
mock_update_vip_host.assert_not_called()
|
||||
|
||||
data = {'port': {'allowed_address_pairs': []}}
|
||||
req = self.new_update_request('ports', data, port['id'])
|
||||
req.get_response(self.api)
|
||||
self._check_port_binding_type(vip['id'], '')
|
||||
self._check_port_virtual_parents(vip['id'], None)
|
||||
mock_update_vip_host.assert_called_once_with(vip['id'], None)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue