geoip
geoip copied to clipboard
No way to download GeoLite Region database needed for unit testing
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.
Ugh, patches welcome! Not sure why this wasn't caught by travis-ci before I merged ...
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.
Yeah, I think the “fix” has to be just skip those tests if that file isn’t available. :-/
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.