Skip to content

Commit

Permalink
Updating Cloudwatch Logs test assets to match AWS Lambda log format c…
Browse files Browse the repository at this point in the history
…hanges.
  • Loading branch information
arithmetric committed Jul 1, 2020
1 parent 3abd040 commit 6c664a3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion test/assets/cloudwatch.data.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
{"id":"1234567891","timestamp":1466263061419,"message":"2016-06-18T15:17:41.419Z\tabcdef-1234-5678-9012-abcdef\tExample log message 1\n"},
{"id":"1234567892","timestamp":1466263061429,"message":"2016-06-18T15:17:41.429Z\tabcdef-1234-5678-9012-abcdef\tExample log message 2\nLine 2\n"},
{"id":"1234567893","timestamp":1466263061439,"message":"END RequestId: abcdef-1234-5678-9012-abcdef\n"},
{"id":"1234567894","timestamp":1466263061449,"message":"REPORT RequestId: abcdef-1234-5678-9012-abcdef\tDuration: 432.10 ms\tBilled Duration: 500 ms \tMemory Size: 256 MB\tMax Memory Used: 123 MB\n"}
{"id":"1234567894","timestamp":1466263061449,"message":"REPORT RequestId: abcdef-1234-5678-9012-abcdef\tDuration: 432.10 ms\tBilled Duration: 500 ms\tMemory Size: 256 MB\tMax Memory Used: 123 MB\n"}
]
}
7 changes: 2 additions & 5 deletions test/assets/cloudwatch.format.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
{
"id":"1234567890",
"timestamp":1466263061409,
"message":"START RequestId: abcdef-1234-5678-9012-abcdef Version: $LATEST\n",
"logType": "start",
"requestId": "abcdef-1234-5678-9012-abcdef",
"lambdaVersion": "$LATEST",
Expand All @@ -29,8 +28,7 @@
"timestamp":1466263061439,
"date": "2016-06-18T15:17:41.439Z",
"requestId": "abcdef-1234-5678-9012-abcdef",
"logType": "end",
"message":"END RequestId: abcdef-1234-5678-9012-abcdef\n"
"logType": "end"
},
{
"id":"1234567894",
Expand All @@ -41,7 +39,6 @@
"duration": "432.10",
"durationBilled": "500",
"memConfigured": "256",
"memUsed": "123",
"message":"REPORT RequestId: abcdef-1234-5678-9012-abcdef\tDuration: 432.10 ms\tBilled Duration: 500 ms \tMemory Size: 256 MB\tMax Memory Used: 123 MB\n"
"memUsed": "123"
}
]

0 comments on commit 6c664a3

Please sign in to comment.