Exemplo n.º 1
0
 def test_sourcefire_connector(self):
     ct = get_alert_method_from_string('sourcefire Connector')
     self.assertEqual(ct, AlertMethod.SOURCEFIRE_CONNECTOR)
Exemplo n.º 2
0
 def test_verinice_connector(self):
     ct = get_alert_method_from_string('verinice Connector')
     self.assertEqual(ct, AlertMethod.VERINICE_CONNECTOR)
Exemplo n.º 3
0
 def test_http_get(self):
     ct = get_alert_method_from_string('HTTP Get')
     self.assertEqual(ct, AlertMethod.HTTP_GET)
Exemplo n.º 4
0
 def test_start_task(self):
     ct = get_alert_method_from_string('Start Task')
     self.assertEqual(ct, AlertMethod.START_TASK)
Exemplo n.º 5
0
 def test_snmp(self):
     ct = get_alert_method_from_string('snmp')
     self.assertEqual(ct, AlertMethod.SNMP)
Exemplo n.º 6
0
 def test_syslog(self):
     ct = get_alert_method_from_string('syslog')
     self.assertEqual(ct, AlertMethod.SYSLOG)
Exemplo n.º 7
0
 def test_send(self):
     ct = get_alert_method_from_string('send')
     self.assertEqual(ct, AlertMethod.SEND)
Exemplo n.º 8
0
 def test_smb(self):
     ct = get_alert_method_from_string('smb')
     self.assertEqual(ct, AlertMethod.SMB)
Exemplo n.º 9
0
 def test_email(self):
     ct = get_alert_method_from_string('email')
     self.assertEqual(ct, AlertMethod.EMAIL)
Exemplo n.º 10
0
 def test_none_or_empty(self):
     ct = get_alert_method_from_string(None)
     self.assertIsNone(ct)
     ct = get_alert_method_from_string('')
     self.assertIsNone(ct)
Exemplo n.º 11
0
 def test_invalid(self):
     with self.assertRaises(InvalidArgument):
         get_alert_method_from_string('foo')
Exemplo n.º 12
0
 def test_alemba_vfire(self):
     ct = get_alert_method_from_string('Alemba vFire')
     self.assertEqual(ct, AlertMethod.ALEMBA_VFIRE)
Exemplo n.º 13
0
 def test_tippingpoint_sms(self):
     ct = get_alert_method_from_string('Tippingpoint SMS')
     self.assertEqual(ct, AlertMethod.TIPPINGPOINT)