diff --git a/systemtest/approvals/TestRUMXForwardedFor/data_streams_disabled.approved.json b/systemtest/approvals/TestRUMXForwardedFor/data_streams_disabled.approved.json index 6ebe7faae13..5e02805e4f0 100644 --- a/systemtest/approvals/TestRUMXForwardedFor/data_streams_disabled.approved.json +++ b/systemtest/approvals/TestRUMXForwardedFor/data_streams_disabled.approved.json @@ -8,13 +8,13 @@ }, "client": { "geo": { - "city_name": "Perth", + "city_name": "dynamic", "continent_name": "Oceania", "country_iso_code": "AU", "country_name": "Australia", "location": "dynamic", - "region_iso_code": "AU-WA", - "region_name": "Western Australia" + "region_iso_code": "dynamic", + "region_name": "dynamic" }, "ip": "220.244.41.16" }, @@ -73,13 +73,13 @@ }, "client": { "geo": { - "city_name": "Perth", + "city_name": "dynamic", "continent_name": "Oceania", "country_iso_code": "AU", "country_name": "Australia", "location": "dynamic", - "region_iso_code": "AU-WA", - "region_name": "Western Australia" + "region_iso_code": "dynamic", + "region_name": "dynamic" }, "ip": "220.244.41.16" }, diff --git a/systemtest/approvals/TestRUMXForwardedFor/data_streams_enabled.approved.json b/systemtest/approvals/TestRUMXForwardedFor/data_streams_enabled.approved.json index ef304180110..322ccdedf55 100644 --- a/systemtest/approvals/TestRUMXForwardedFor/data_streams_enabled.approved.json +++ b/systemtest/approvals/TestRUMXForwardedFor/data_streams_enabled.approved.json @@ -8,13 +8,13 @@ }, "client": { "geo": { - "city_name": "Perth", + "city_name": "dynamic", "continent_name": "Oceania", "country_iso_code": "AU", "country_name": "Australia", "location": "dynamic", - "region_iso_code": "AU-WA", - "region_name": "Western Australia" + "region_iso_code": "dynamic", + "region_name": "dynamic" }, "ip": "220.244.41.16" }, @@ -77,13 +77,13 @@ }, "client": { "geo": { - "city_name": "Perth", + "city_name": "dynamic", "continent_name": "Oceania", "country_iso_code": "AU", "country_name": "Australia", "location": "dynamic", - "region_iso_code": "AU-WA", - "region_name": "Western Australia" + "region_iso_code": "dynamic", + "region_name": "dynamic" }, "ip": "220.244.41.16" }, diff --git a/systemtest/rum_test.go b/systemtest/rum_test.go index e6fad1d4215..57732763c5d 100644 --- a/systemtest/rum_test.go +++ b/systemtest/rum_test.go @@ -76,7 +76,10 @@ func testRUMXForwardedFor(t *testing.T, srv *apmservertest.Server) { "source.port", // Do not assert the exact contents of the location field since they may change // slightly depending on the IP lookup. + "client.geo.city_name", "client.geo.location", + "client.geo.region_iso_code", + "client.geo.region_name", ) }