Skip to content

Commit 29cc1a6

Browse files
Zuulopenstack-gerrit
authored andcommitted
Merge "[FT] Make explicit the "publish" call check in "test_port_forwarding"" into stable/2023.1
2 parents adfe065 + 234a098 commit 29cc1a6

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)