Ejemplo n.º 1
0
 def test_overloaded_remove_conntrack(self):
     with mock.patch.object(iptables_firewall.IptablesFirewallDriver,
             '_remove_conntrack_entries_from_port_deleted') as rcefpd, \
          mock.patch("neutron.agent.linux.ip_conntrack.IpConntrackManager"
                     "._populate_initial_zone_map"):
         firewall = iptables.get_iptables_driver_instance()
         firewall._remove_conntrack_entries_from_port_deleted(None)
         rcefpd.assert_not_called()
Ejemplo n.º 2
0
 def test_overloaded_remove_conntrack(self):
     with mock.patch.object(iptables_firewall.IptablesFirewallDriver,
             '_remove_conntrack_entries_from_port_deleted') as rcefpd, \
          mock.patch("neutron.agent.linux.ip_conntrack.IpConntrackManager"
                     "._populate_initial_zone_map"):
         firewall = iptables.get_iptables_driver_instance()
         firewall._remove_conntrack_entries_from_port_deleted(None)
         rcefpd.assert_not_called()
Ejemplo n.º 3
0
 def test_get_iptables_driver_instance_has_correct_instance(self):
     instance = iptables.get_iptables_driver_instance()
     self.assertIsInstance(
         instance, iptables_firewall.OVSHybridIptablesFirewallDriver)
Ejemplo n.º 4
0
 def test_get_iptables_driver_instance_has_correct_instance(self):
     instance = iptables.get_iptables_driver_instance()
     self.assertIsInstance(
         instance,
         iptables_firewall.OVSHybridIptablesFirewallDriver)