Ejemplo n.º 1
0
 def test_security_groups_member_updated(self):
     self.agent.refresh_firewall = mock.Mock()
     self.agent.prepare_devices_filter(["fake_port_id"])
     self.agent.security_groups_member_updated(["fake_sgid2", "fake_sgid3"])
     self.agent.refresh_firewall.assert_has_calls([call.refresh_firewall()])
Ejemplo n.º 2
0
 def test_security_groups_provider_updated(self):
     self.agent.refresh_firewall = mock.Mock()
     self.agent.security_groups_provider_updated()
     self.agent.refresh_firewall.assert_has_calls([call.refresh_firewall()])
 def test_security_groups_rule_updated(self):
     self.agent.refresh_firewall = mock.Mock()
     self.agent.prepare_devices_filter(['fake_port_id'])
     self.agent.security_groups_rule_updated(['fake_sgid1', 'fake_sgid3'])
     self.agent.refresh_firewall.assert_has_calls(
         [call.refresh_firewall()])