From 7b3448a64659ffdad2c4585d3b17ed6164279c79 Mon Sep 17 00:00:00 2001 From: Olivier Gayot Date: Mon, 27 May 2024 10:42:11 +0200 Subject: [PATCH] geoip: update test data following change in geoip.ubuntu.com/lookup After a recent update of geoip.ubuntu.com/lookup, the value of the tag is now hardcoded to "Unknown". The tag also has a slightly different meaning but this should not affect Subiquity in any way. Update the test data accordingly. Signed-off-by: Olivier Gayot --- subiquity/server/geoip.py | 4 ++-- subiquity/server/tests/test_geoip.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/subiquity/server/geoip.py b/subiquity/server/geoip.py index e75b2322..2edd5cde 100644 --- a/subiquity/server/geoip.py +++ b/subiquity/server/geoip.py @@ -53,7 +53,7 @@ class DryRunGeoIPStrategy(GeoIPStrategy): 255.255.255.255 OK FR - FRA + Unknown France A8 Ile-de-France @@ -61,7 +61,7 @@ class DryRunGeoIPStrategy(GeoIPStrategy): 75013 48.8151 2.2182 - 0 + None Europe/Paris """ diff --git a/subiquity/server/tests/test_geoip.py b/subiquity/server/tests/test_geoip.py index e2a36b25..4edca232 100644 --- a/subiquity/server/tests/test_geoip.py +++ b/subiquity/server/tests/test_geoip.py @@ -25,7 +25,7 @@ xml = """ 1.2.3.4 OK US - USA + Unknown United States CA California