Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace Geo IP database used in testing with dummy data #2414

Open
jsoriano opened this issue Feb 17, 2025 · 2 comments
Open

Replace Geo IP database used in testing with dummy data #2414

jsoriano opened this issue Feb 17, 2025 · 2 comments

Comments

@jsoriano
Copy link
Member

Find or prepare a new Geo IP database that contains some sample data at least for the ip ranges reserved for documentation.

Current database is a reduced sample database, that contains information for public IPs, but doesn't contain information for IPs in the documentation ranges. We want to start migrating everything to these ranges in tests.

We need to think on a migration path for the integrations repository, because changing this database will break tests.

See discussion in #2408

@colin-stubbs
Copy link
Contributor

@jsoriano thanks! I've dumped everything into a blog post re: generating the GeoLite2 dummy test databases.

https://routedlogic.net/blog/2025/02/15/creating-custom-mmdb-files

Given the source for the .mmdb's is simply JSON files, it'd be pretty easy to customise further. If multiple different responses were needed simply CIDR subnetting 0.0.0.0/0 and ::/0 into different chunks would work, e.g. 0.0.0.0/1 and 128.0.0.0/1 etc, and ::0/1 and 8000::0/1

@jsoriano
Copy link
Member Author

Wow, nice, thanks for the detailed instructions! This will be definitely useful to solve this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants