Skip to content

Commit

Permalink
Fixed the system test as suggested
Browse files Browse the repository at this point in the history
  • Loading branch information
muskan-agarwal26 committed Jul 8, 2024
1 parent 11612ac commit d9434af
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
4 changes: 3 additions & 1 deletion packages/websocket/_dev/test/system/test-get-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,7 @@ vars:
"events": body.map(e, {
"message": e.encode_json(),
}),
"cursor": body.map(e, e.ts).max()
"cursor": {
"max_ts": body.map(e, e.ts).max()
}
})
10 changes: 5 additions & 5 deletions packages/websocket/sample_event.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"@timestamp": "2024-06-18T11:17:50.597Z",
"@timestamp": "2024-07-08T09:25:41.330Z",
"agent": {
"ephemeral_id": "2beb7452-7ea7-44f1-a1bf-d000c36fdc20",
"id": "5252b4ba-5930-4658-ada6-7797fbe892d9",
"ephemeral_id": "1fdf894d-9ddc-4c11-bf25-1970712a0bd9",
"id": "d9b59d61-0816-4bba-a760-819d10d05da0",
"name": "docker-fleet-agent",
"type": "filebeat",
"version": "8.13.0"
Expand All @@ -16,14 +16,14 @@
"version": "8.0.0"
},
"elastic_agent": {
"id": "5252b4ba-5930-4658-ada6-7797fbe892d9",
"id": "d9b59d61-0816-4bba-a760-819d10d05da0",
"snapshot": false,
"version": "8.13.0"
},
"event": {
"agent_id_status": "verified",
"dataset": "websocket.websocket",
"ingested": "2024-06-18T11:18:02Z"
"ingested": "2024-07-08T09:25:53Z"
},
"input": {
"type": "websocket"
Expand Down

0 comments on commit d9434af

Please # to comment.