Skip to content

Commit

Permalink
Merge branch 'testing' of github.com:Rafiot/uwhoisd into testing
Browse files Browse the repository at this point in the history
Conflicts:
	uwhoisd/__init__.py
  • Loading branch information
Rafiot committed Aug 25, 2016
2 parents 1670059 + 91f3c38 commit 0d42862
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 150 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ install:
- popd

script:
- coverage run --parallel-mode --source=uwhoisd uwhoisd/__init__.py extra/uwhoisd.ini &
- coverage run --parallel-mode --source=uwhoisd uwhoisd/__init__.py -c extra/uwhoisd.ini &
- pid=$!
- sleep 5
- nosetests --with-coverage --cover-package=uwhoisd
Expand Down
127 changes: 0 additions & 127 deletions tests/test_cache.py

This file was deleted.

12 changes: 0 additions & 12 deletions tests/test_recursion.py

This file was deleted.

17 changes: 8 additions & 9 deletions travis_config/uwhoisd.ini
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,6 @@ conservative=
nz
uk

; Standalone python cache
[cache]
enable=false
; Maximum number of items in the LFU cache.
max_size=1024

; Maximum time in seconds to cache an item for.
max_age=500

; External Redis server cache
[redis_cache]
enable=true
Expand Down Expand Up @@ -1885,6 +1876,14 @@ db=1
; Servers
whois.dns.lu=1 100

[whowas]
enable=true
; Redis server configuration
host=127.0.0.1
port=6379
db=2


; Some servers are broken, in that case, we just return default contact points.
[broken]
whois.nic.es='The spanish Whois is broken. Complains to: [email protected] [email protected]'
Expand Down
2 changes: 1 addition & 1 deletion uwhoisd/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def read_config(self, parser):
whowas_host = parser.get('whowas', 'host')
whowas_port = parser.getint('whowas', 'port')
whowas_database = parser.getint('whowas', 'db')
self.redis_whowas = redis.StrictRedis(whowas_host, whowas_port, whowas_database, decode_response=True)
self.redis_whowas = redis.StrictRedis(whowas_host, whowas_port, whowas_database, decode_responses=True)

self.recursion_patterns = {}
for zone, pattern in parser.items('recursion_patterns'):
Expand Down

0 comments on commit 0d42862

Please sign in to comment.