[FT] Make explicit the "publish" call check in "test_port_forwarding"
The functional test "TestMaintenance.test_port_forwarding" is checking the "registry.publish" call after calling "delete_floatingip_port_forwarding". This patch makes this check explicit for the expected call. Closes-Bug: #2033387 Change-Id: I95074a0fe071e3ed8bf58c9210d63a2f30ee68a0
This commit is contained in:
@@ -941,7 +941,9 @@ class TestMaintenance(_TestMaintenanceHelper):
|
||||
m_publish.reset_mock()
|
||||
self.pf_plugin.delete_floatingip_port_forwarding(
|
||||
self.context, pf_obj['id'], fip_id)
|
||||
m_publish.assert_called_once()
|
||||
call = mock.call('port_forwarding', 'after_delete', self.pf_plugin,
|
||||
payload=mock.ANY)
|
||||
m_publish.assert_has_calls([call])
|
||||
|
||||
# Assert load balancer for port forwarding is stale
|
||||
_verify_lb(self, 'udp', 5353, 53)
|
||||
|
Reference in New Issue
Block a user