mirror of https://github.com/fail2ban/fail2ban
more compat issues (Logger.warn -> Logger.warning)
parent
337a519cb2
commit
7e88c9be8d
|
@ -296,7 +296,7 @@ def initTests(opts):
|
||||||
|
|
||||||
# precache all invalid ip's (TEST-NET-1, ..., TEST-NET-3 according to RFC 5737):
|
# precache all invalid ip's (TEST-NET-1, ..., TEST-NET-3 according to RFC 5737):
|
||||||
c = DNSUtils.CACHE_ipToName
|
c = DNSUtils.CACHE_ipToName
|
||||||
c.clear = lambda: logSys.warn('clear CACHE_ipToName is disabled in test suite')
|
c.clear = lambda: logSys.warning('clear CACHE_ipToName is disabled in test suite')
|
||||||
# increase max count and max time (too many entries, long time testing):
|
# increase max count and max time (too many entries, long time testing):
|
||||||
c.setOptions(maxCount=10000, maxTime=5*60)
|
c.setOptions(maxCount=10000, maxTime=5*60)
|
||||||
for i in range(256):
|
for i in range(256):
|
||||||
|
@ -314,7 +314,7 @@ def initTests(opts):
|
||||||
c.set('8.8.4.4', 'dns.google')
|
c.set('8.8.4.4', 'dns.google')
|
||||||
# precache all dns to ip's used in test cases:
|
# precache all dns to ip's used in test cases:
|
||||||
c = DNSUtils.CACHE_nameToIp
|
c = DNSUtils.CACHE_nameToIp
|
||||||
c.clear = lambda: logSys.warn('clear CACHE_nameToIp is disabled in test suite')
|
c.clear = lambda: logSys.warning('clear CACHE_nameToIp is disabled in test suite')
|
||||||
for i in (
|
for i in (
|
||||||
('999.999.999.999', set()),
|
('999.999.999.999', set()),
|
||||||
('abcdef.abcdef', set()),
|
('abcdef.abcdef', set()),
|
||||||
|
|
Loading…
Reference in New Issue