Skip to content

Commit 0e09aa6

Browse files
authored
tests/system: fix system tests (#5037)
* tests/system: adapt to new API response In elastic/kibana#95146 the response structure for listing APM agent central config changed. Update system tests to match. * tests/system: add user_agent.device.type elastic/elasticsearch#69322 added support for extracting device types to the user_agent ingest processors. Update approvals to match.
1 parent 141ee87 commit 0e09aa6

7 files changed

Lines changed: 15 additions & 9 deletions

File tree

docs/data/elasticsearch/generated/errors.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,8 @@
407407
},
408408
"user_agent": {
409409
"device": {
410-
"name": "Other"
410+
"name": "Other",
411+
"type": "Other"
411412
},
412413
"name": "Other",
413414
"original": "Mozilla Chrome Edge"

docs/data/elasticsearch/generated/transactions.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -497,10 +497,11 @@
497497
},
498498
"user_agent": {
499499
"device": {
500-
"name": "Other"
500+
"name": "Other",
501+
"type": "Other"
501502
},
502503
"name": "Other",
503504
"original": "Mozilla Chrome Edge"
504505
}
505506
}
506-
]
507+
]

systemtest/approvals/TestRUMErrorSourcemapping.approved.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,8 @@
302302
},
303303
"user_agent": {
304304
"device": {
305-
"name": "Other"
305+
"name": "Other",
306+
"type": "Other"
306307
},
307308
"name": "Go-http-client",
308309
"original": "Go-http-client/1.1",

systemtest/approvals/TestRUMXForwardedFor.approved.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,8 @@
6565
},
6666
"user_agent": {
6767
"device": {
68-
"name": "Other"
68+
"name": "Other",
69+
"type": "Other"
6970
},
7071
"name": "Go-http-client",
7172
"original": "Go-http-client/1.1",

tests/system/error.approved.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,8 @@
407407
},
408408
"user_agent": {
409409
"device": {
410-
"name": "Other"
410+
"name": "Other",
411+
"type": "Other"
411412
},
412413
"name": "Other",
413414
"original": "Mozilla Chrome Edge"

tests/system/kibana.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def list_agent_config(self):
6161
}
6262
)
6363
assert resp.status_code == 200, resp.status_code
64-
return resp.json()
64+
return resp.json()['configurations']
6565

6666
def delete_agent_config(self, service, env=None):
6767
data = {

tests/system/transaction.approved.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -497,10 +497,11 @@
497497
},
498498
"user_agent": {
499499
"device": {
500-
"name": "Other"
500+
"name": "Other",
501+
"type": "Other"
501502
},
502503
"name": "Other",
503504
"original": "Mozilla Chrome Edge"
504505
}
505506
}
506-
]
507+
]

0 commit comments

Comments
 (0)