Skip to content

Use CIDRs to decide allowed IPs for testing#826

Merged
jsoriano merged 2 commits intoelastic:mainfrom
jsoriano:geoip-ipv6-check
May 24, 2022
Merged

Use CIDRs to decide allowed IPs for testing#826
jsoriano merged 2 commits intoelastic:mainfrom
jsoriano:geoip-ipv6-check

Conversation

@jsoriano
Copy link
Member

@jsoriano jsoriano commented May 23, 2022

This fixes validation of IPv6 addresses, their string representation may
vary depending on leading zeroes or abbreviated addresses.

2a02:cf40:0add:4002:91f2:a9b2:e09a:6fc6 was not being accepted even
when it is one of the addresses in the list. Seen in https://beats-ci.elastic.co/blue/organizations/jenkins/Ingest-manager%2Fintegrations%2FPR-3410/detail/PR-3410/1/tests.

It also extends the number of IP addresses that can be used for testing,
specially IPv6 addresses.

This fixes validation of IPv6 addresses, their string representation may
vary depending on leading zeroes or abbreviated addresses.

It also extends the number of IP addresses that can be used for testing,
specially IPv6 addresses.
@jsoriano jsoriano requested a review from a team May 23, 2022 12:51
@jsoriano jsoriano self-assigned this May 23, 2022
@elasticmachine
Copy link
Collaborator

elasticmachine commented May 23, 2022

💚 Build Succeeded

the below badges are clickable and redirect to their specific view in the CI or DOCS
Pipeline View Test View Changes Artifacts preview preview

Expand to view the summary

Build stats

  • Start Time: 2022-05-23T12:54:46.642+0000

  • Duration: 28 min 45 sec

Test stats 🧪

Test Results
Failed 0
Passed 715
Skipped 0
Total 715

🤖 GitHub comments

To re-run your PR in the CI, just comment with:

  • /test : Re-trigger the build.

@elasticmachine
Copy link
Collaborator

🌐 Coverage report

Name Metrics % (covered/total) Diff
Packages 100.0% (30/30) 💚
Files 64.22% (70/109) 👍
Classes 58.278% (88/151) 👍
Methods 47.333% (284/600) 👍
Lines 32.298% (2611/8084) 👍 0.012
Conditionals 100.0% (0/0) 💚

@jsoriano jsoriano merged commit 035bfdb into elastic:main May 24, 2022
@jsoriano jsoriano deleted the geoip-ipv6-check branch May 24, 2022 10:48
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

Successfully merging this pull request may close these issues.

3 participants