Skip to content

Commit

Permalink
systemtest: Fix geoip changes (#11764)
Browse files Browse the repository at this point in the history
Fix geoip changes that cause systemtest failures
  • Loading branch information
carsonip authored Oct 4, 2023
1 parent 11183a9 commit 2df3f00
Show file tree
Hide file tree
Showing 5 changed files with 86 additions and 77 deletions.
9 changes: 6 additions & 3 deletions systemtest/approvals/TestIntake/Errors.approved.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,16 @@
},
"client": {
"geo": {
"city_name": "Sheridan",
"continent_name": "North America",
"country_iso_code": "US",
"country_name": "United States",
"location": {
"lat": 37.751,
"lon": -97.822
}
"lat": 40.1405,
"lon": -86.2209
},
"region_iso_code": "US-IN",
"region_name": "Indiana"
},
"ip": "12.53.12.1"
},
Expand Down
9 changes: 6 additions & 3 deletions systemtest/approvals/TestIntake/Events.approved.json
Original file line number Diff line number Diff line change
Expand Up @@ -565,13 +565,16 @@
},
"client": {
"geo": {
"city_name": "Sheridan",
"continent_name": "North America",
"country_iso_code": "US",
"country_name": "United States",
"location": {
"lat": 37.751,
"lon": -97.822
}
"lat": 40.1405,
"lon": -86.2209
},
"region_iso_code": "US-IN",
"region_name": "Indiana"
},
"ip": "12.53.12.1"
},
Expand Down
9 changes: 6 additions & 3 deletions systemtest/approvals/TestIntake/Transactions.approved.json
Original file line number Diff line number Diff line change
Expand Up @@ -307,13 +307,16 @@
},
"client": {
"geo": {
"city_name": "Sheridan",
"continent_name": "North America",
"country_iso_code": "US",
"country_name": "United States",
"location": {
"lat": 37.751,
"lon": -97.822
}
"lat": 40.1405,
"lon": -86.2209
},
"region_iso_code": "US-IN",
"region_name": "Indiana"
},
"ip": "12.53.12.1"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,16 @@
},
"client": {
"geo": {
"city_name": "Sheridan",
"continent_name": "North America",
"country_iso_code": "US",
"country_name": "United States",
"location": {
"lat": 37.751,
"lon": -97.822
}
"lat": 40.1405,
"lon": -86.2209
},
"region_iso_code": "US-IN",
"region_name": "Indiana"
},
"ip": "12.53.12.1"
},
Expand Down
127 changes: 62 additions & 65 deletions systemtest/approvals/TestOTLPGRPCLogsClientIP.approved.json
Original file line number Diff line number Diff line change
@@ -1,67 +1,64 @@
{
"events": [
{
"@timestamp": "1970-01-01T00:00:01.000Z",
"agent": {
"name": "android/java",
"version": "unknown"
},
"client": {
"geo": {
"continent_name": "Europe",
"region_iso_code": "ES-M",
"city_name": "Madrid",
"country_iso_code": "ES",
"country_name": "Spain",
"region_name": "Madrid",
"location": {
"lon": -3.6934,
"lat": 40.4163
}
},
"ip": "195.55.79.118"
},
"data_stream": {
"dataset": "apm.app.unknown",
"namespace": "default",
"type": "logs"
},
"event": {
"severity": 9
},
"labels": {
"key": "value"
},
"log": {
"level": "Info"
},
"message": "a log message",
"numeric_labels": {
"numeric_key": 1234
},
"observer": {
"hostname": "dynamic",
"type": "apm-server",
"version": "dynamic"
},
"service": {
"language": {
"name": "java"
},
"name": "unknown"
},
"source": {
"nat": {
"ip": "127.0.0.1"
},
"ip": "195.55.79.118"
},
"span": {
"id": "0200000000000000"
},
"trace": {
"id": "01000000000000000000000000000000"
}
}
]
"events": [
{
"@timestamp": "1970-01-01T00:00:01.000Z",
"agent": {
"name": "android/java",
"version": "unknown"
},
"client": {
"geo": {
"continent_name": "Europe",
"country_iso_code": "ES",
"country_name": "Spain",
"location": {
"lat": 40.4172,
"lon": -3.684
}
},
"ip": "195.55.79.118"
},
"data_stream": {
"dataset": "apm.app.unknown",
"namespace": "default",
"type": "logs"
},
"event": {
"severity": 9
},
"labels": {
"key": "value"
},
"log": {
"level": "Info"
},
"message": "a log message",
"numeric_labels": {
"numeric_key": 1234
},
"observer": {
"hostname": "dynamic",
"type": "apm-server",
"version": "dynamic"
},
"service": {
"language": {
"name": "java"
},
"name": "unknown"
},
"source": {
"ip": "195.55.79.118",
"nat": {
"ip": "127.0.0.1"
}
},
"span": {
"id": "0200000000000000"
},
"trace": {
"id": "01000000000000000000000000000000"
}
}
]
}

0 comments on commit 2df3f00

Please sign in to comment.