summaryrefslogtreecommitdiff
path: root/fail2ban
diff options
context:
space:
mode:
authorsebres <serg.brester@sebres.de>2017-07-03 12:38:21 +0200
committersebres <serg.brester@sebres.de>2017-07-03 12:41:54 +0200
commit9f55ed86df19d990890c0103f038a147cb7145b9 (patch)
tree647c2a2d910c8c8c2147ed021b9826974ad90225 /fail2ban
parent205edff65d3165c527bbcec2caee2b7b0a9eb2ec (diff)
downloadfail2ban-9f55ed86df19d990890c0103f038a147cb7145b9.tar.gz
fixed testCymruInfoNxdomain (since cymru does not provide ASN mapping info for "10.0.0.0" anymore)
Diffstat (limited to 'fail2ban')
-rw-r--r--fail2ban/tests/banmanagertestcase.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/fail2ban/tests/banmanagertestcase.py b/fail2ban/tests/banmanagertestcase.py
index 8c58994c..ec1e5686 100644
--- a/fail2ban/tests/banmanagertestcase.py
+++ b/fail2ban/tests/banmanagertestcase.py
@@ -106,13 +106,12 @@ class StatusExtendedCymruInfo(unittest.TestCase):
"country": ["nxdomain"],
"rir": ["nxdomain"]})
- # even for private IPs ASNs defined
# Since it outputs for all active tickets we would get previous results
# and new ones
- ticket = BanTicket("10.0.0.0", 1167606000.0)
+ ticket = BanTicket("8.0.0.0", 1167606000.0)
self.assertTrue(self.__banManager.addBanTicket(ticket))
cymru_info = self.__banManager.getBanListExtendedCymruInfo()
assert_dict_equal(cymru_info,
- {"asn": ["nxdomain", "4565",],
- "country": ["nxdomain", "unknown"],
- "rir": ["nxdomain", "other"]})
+ {"asn": ["nxdomain", "3356",],
+ "country": ["nxdomain", "US"],
+ "rir": ["nxdomain", "arin"]})