From 6c664a31a1ca4950ee865e75801a022281fc78e9 Mon Sep 17 00:00:00 2001 From: Joe Turgeon Date: Wed, 1 Jul 2020 09:56:07 -0500 Subject: [PATCH] Updating Cloudwatch Logs test assets to match AWS Lambda log format changes. --- test/assets/cloudwatch.data.json | 2 +- test/assets/cloudwatch.format.json | 7 ++----- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/test/assets/cloudwatch.data.json b/test/assets/cloudwatch.data.json index 2277302..9c34f97 100644 --- a/test/assets/cloudwatch.data.json +++ b/test/assets/cloudwatch.data.json @@ -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"} ] } diff --git a/test/assets/cloudwatch.format.json b/test/assets/cloudwatch.format.json index 58cefe3..e892300 100644 --- a/test/assets/cloudwatch.format.json +++ b/test/assets/cloudwatch.format.json @@ -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", @@ -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", @@ -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" } ]