Skip to content

Commit 796b103

Browse files
committed
Add cross-database test networks
Add IP risk scores for IPs that have existing country data in Enterprise, and country data for an IP that exists in Anonymous-Plus. This enables testing scenarios requiring lookups across multiple databases.
1 parent 7cb393f commit 796b103

File tree

4 files changed

+110
-0
lines changed

4 files changed

+110
-0
lines changed

source-data/GeoIP2-IP-Risk-Test.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,5 +87,25 @@
8787
"is_hosting_provider": true,
8888
"anonymizer_confidence": 70
8989
}
90+
},
91+
{
92+
"2.125.160.216/32": {
93+
"ip_risk": 0.65
94+
}
95+
},
96+
{
97+
"1.231.232.0/32": {
98+
"ip_risk": 0.45
99+
}
100+
},
101+
{
102+
"64.17.254.216/32": {
103+
"ip_risk": 0.65
104+
}
105+
},
106+
{
107+
"1.2.0.0/32": {
108+
"ip_risk": 0.99
109+
}
90110
}
91111
]

source-data/GeoIP2-Precision-Enterprise-Test.json

Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3345,5 +3345,95 @@
33453345
"user_type": "military"
33463346
}
33473347
}
3348+
},
3349+
{
3350+
"1.2.0.0/32": {
3351+
"city": {
3352+
"confidence": 80,
3353+
"geoname_id": 2950159,
3354+
"names": {
3355+
"de": "Berlin",
3356+
"en": "Berlin",
3357+
"es": "Berlín",
3358+
"fr": "Berlin",
3359+
"ja": "ベルリン",
3360+
"pt-BR": "Berlim",
3361+
"ru": "Берлин",
3362+
"zh-CN": "柏林"
3363+
}
3364+
},
3365+
"continent": {
3366+
"code": "EU",
3367+
"geoname_id": 6255148,
3368+
"names": {
3369+
"de": "Europa",
3370+
"en": "Europe",
3371+
"es": "Europa",
3372+
"fr": "Europe",
3373+
"ja": "ヨーロッパ",
3374+
"pt-BR": "Europa",
3375+
"ru": "Европа",
3376+
"zh-CN": "欧洲"
3377+
}
3378+
},
3379+
"country": {
3380+
"confidence": 95,
3381+
"geoname_id": 2921044,
3382+
"iso_code": "DE",
3383+
"names": {
3384+
"de": "Deutschland",
3385+
"en": "Germany",
3386+
"es": "Alemania",
3387+
"fr": "Allemagne",
3388+
"ja": "ドイツ",
3389+
"pt-BR": "Alemanha",
3390+
"ru": "Германия",
3391+
"zh-CN": "德国"
3392+
}
3393+
},
3394+
"location": {
3395+
"accuracy_radius": 100,
3396+
"latitude": 52.5200,
3397+
"longitude": 13.4050,
3398+
"time_zone": "Europe/Berlin"
3399+
},
3400+
"registered_country": {
3401+
"geoname_id": 2921044,
3402+
"iso_code": "DE",
3403+
"names": {
3404+
"de": "Deutschland",
3405+
"en": "Germany",
3406+
"es": "Alemania",
3407+
"fr": "Allemagne",
3408+
"ja": "ドイツ",
3409+
"pt-BR": "Alemanha",
3410+
"ru": "Германия",
3411+
"zh-CN": "德国"
3412+
}
3413+
},
3414+
"subdivisions": [
3415+
{
3416+
"confidence": 80,
3417+
"geoname_id": 2950157,
3418+
"iso_code": "BE",
3419+
"names": {
3420+
"de": "Berlin",
3421+
"en": "Berlin",
3422+
"es": "Berlín",
3423+
"fr": "Berlin",
3424+
"ja": "ベルリン州",
3425+
"ru": "Берлин"
3426+
}
3427+
}
3428+
],
3429+
"traits": {
3430+
"autonomous_system_number": 3320,
3431+
"autonomous_system_organization": "Deutsche Telekom AG",
3432+
"connection_type": "Cable/DSL",
3433+
"isp": "Deutsche Telekom",
3434+
"organization": "Deutsche Telekom",
3435+
"user_type": "residential"
3436+
}
3437+
}
33483438
}
33493439
]

test-data/GeoIP2-IP-Risk-Test.mmdb

743 Bytes
Binary file not shown.
482 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)