Tests: geoip2 http & stream tests - #107
Open
nitin9977 wants to merge 1 commit into
Open
Conversation
nitin9977
force-pushed
the
nitin/geoip2-migration
branch
from
August 20, 2026 12:05
8e51466 to
c7acc07
Compare
jimf5
reviewed
Aug 25, 2026
jimf5
left a comment
Contributor
There was a problem hiding this comment.
It is worth adding IPv6 tests upon readiness.
| my $mmdb_dir = $ENV{TEST_NGINX_MMDB_DIR} | ||
| // './geoip'; | ||
|
|
||
| plan(skip_all => 'GeoIP2 test MMDB databases not found') |
Contributor
There was a problem hiding this comment.
We typically create all required dependencies within the test and do not store sample data in the repository.
Author
There was a problem hiding this comment.
@jimf5 Yes, I saw the same for existing GeoIP testcases, but I want to discuss this with wider audience. My thought process is that we should not be creating the db files, instead use the official test db files(~50KB).
Will bring this in one of our dev sync-up.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Proposed changes
Testcases for ngx_http_geoip2_module and ngx_stream_geoip2_module backed by the maintained libmaxminddb.
Tests PR: nginx/nginx#1655
Checklist
Before creating a PR, run through this checklist and mark each as complete:
README.mdand/orCHANGELOG.md).