Skip to content

Commit 234a098

Browse files
committed
[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 (cherry picked from commit d9eb044)
1 parent 8ddf72d commit 234a098

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

neutron/tests/functional/plugins/ml2/drivers/ovn/mech_driver/ovsdb/test_maintenance.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -939,7 +939,9 @@ def _verify_lb(test, protocol, vip_ext_port, vip_int_port):
939939
m_publish.reset_mock()
940940
self.pf_plugin.delete_floatingip_port_forwarding(
941941
self.context, pf_obj['id'], fip_id)
942-
m_publish.assert_called_once()
942+
call = mock.call('port_forwarding', 'after_delete', self.pf_plugin,
943+
payload=mock.ANY)
944+
m_publish.assert_has_calls([call])
943945

944946
# Assert load balancer for port forwarding is stale
945947
_verify_lb(self, 'udp', 5353, 53)

0 commit comments

Comments
 (0)