mirror of
https://github.com/fail2ban/fail2ban.git
synced 2026-03-11 08:55:31 +00:00
Remove duplicate unittests
This commit is contained in:
parent
aa848a5f9e
commit
8233f21fc2
1 changed files with 0 additions and 9 deletions
|
|
@ -266,15 +266,6 @@ class IgnoreIP(LogCaptureTestCase):
|
|||
self.assertTrue(self.filter.inIgnoreIPList("10.0.0.1"))
|
||||
self.assertFalse(self.filter.inIgnoreIPList("10.0.0.0"))
|
||||
|
||||
def testIgnoreCauseDNS(self):
|
||||
self.filter.setUseDns("true")
|
||||
self.filter.addIgnoreIP("example.com")
|
||||
self.assertTrue(self._is_logged("Ignore 93.184.216.34"))
|
||||
|
||||
def testIgnoreCauseIP(self):
|
||||
self.filter.addIgnoreIP("93.184.216.34")
|
||||
self.assertTrue(self._is_logged("Ignore 93.184.216.34"))
|
||||
|
||||
def testIgnoreCause(self):
|
||||
ip = "93.184.216.34"
|
||||
for ignore_source in ["dns", "ip", "command"]:
|
||||
|
|
|
|||
Loading…
Reference in a new issue