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

-download task support for geoip #3373

Merged

Conversation

rajeshLovesToCode
Copy link
Contributor

Signed-off-by: rajeshLovesToCode [email protected]

Description

Implemented downlaod maxmind test mmdb files to resource folder

Issues Resolved

GitHub-issue #253

Check List

  • New functionality includes testing.
  • New functionality has a documentation issue. Please link to it in this PR.
    • New functionality has javadoc added
  • Commits are signed with a real name per the DCO

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Signed-off-by: rajeshLovesToCode <[email protected]>
dlvenable
dlvenable previously approved these changes Sep 27, 2023
assertThat(geoData.get("country_iso_code"), equalTo("US"));
assertThat(geoData.get("ip"), equalTo("2001:4860:4860:0:0:0:0:8888"));
assertThat(geoData.get("country_iso_code"), equalTo("FR"));
assertThat(geoData.get("ip"), equalTo("2a02:ec00:0:0:0:0:0:0"));
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit. It probably better to make this as

assertThat(geoData.get("ip"), equalTo(IP));

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hi @kkondaka pr updated with the fix

assertThat(geoData.get("country_name"), equalTo("United States"));
assertThat(geoData.get("ip"), equalTo("2001:4860:4860:0:0:0:0:8888"));
assertThat(geoData.get("country_name"), equalTo("France"));
assertThat(geoData.get("ip"), equalTo("2a02:ec00:0:0:0:0:0:0"));
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hi @kkondaka pr updated with the fix

kkondaka
kkondaka previously approved these changes Oct 2, 2023
@dlvenable dlvenable merged commit 56b74be into opensearch-project:main Oct 3, 2023
24 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Oct 3, 2023
* -download task support for geoip
Signed-off-by: rajeshLovesToCode <[email protected]>

* -download task support for geoip
Signed-off-by: rajeshLovesToCode <[email protected]>

* -download task support for geoip
Signed-off-by: rajeshLovesToCode <[email protected]>

* -fix for geoip IP constant
Signed-off-by: rajeshLovesToCode <[email protected]>
(cherry picked from commit 56b74be)
dlvenable pushed a commit that referenced this pull request Oct 5, 2023
* -download task support for geoip
Signed-off-by: rajeshLovesToCode <[email protected]>

* -download task support for geoip
Signed-off-by: rajeshLovesToCode <[email protected]>

* -download task support for geoip
Signed-off-by: rajeshLovesToCode <[email protected]>

* -fix for geoip IP constant
Signed-off-by: rajeshLovesToCode <[email protected]>
(cherry picked from commit 56b74be)

Co-authored-by: rajeshLovesToCode <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants