geoip icon indicating copy to clipboard operation
geoip copied to clipboard

No way to download GeoLite Region database needed for unit testing

Open ohookins opened this issue 12 years ago • 4 comments

The perl script doesn't include any download of a region-aware database, but some of the tests rely on one being available. Those tests currently fail.

ohookins avatar Oct 16 '13 14:10 ohookins

Ugh, patches welcome! Not sure why this wasn't caught by travis-ci before I merged ...

abh avatar Oct 18 '13 05:10 abh

I've tried finding a free version of the region database but have had no luck so far. I did see some hints on the Maxmind website that the GeoLite City database contains region data outside of the US and Canada but in practice I can't make that work as it throws an error at the point of loading the database.

ohookins avatar Oct 18 '13 08:10 ohookins

Yeah, I think the “fix” has to be just skip those tests if that file isn’t available. :-/

abh avatar Oct 18 '13 14:10 abh

MaxMind does distribute test databases with some of our APIs. See the Java API's resource folder for example. GeoIPCity.dat, in particular, should have region information.

oschwald avatar Aug 13 '14 13:08 oschwald