@@ -50,9 +50,13 @@ def test_awslogs_handler_rds_postgresql(self, mock_cache_init):
5050 "logStream" : "datadog.0" ,
5151 "logEvents" : [
5252 {
53- "id" : "31953106606966983378809025079804211143289615424298221568" ,
53+ "id" : (
54+ "31953106606966983378809025079804211143289615424298221568"
55+ ),
5456 "timestamp" : 1609556645000 ,
55- "message" : "2021-01-02 03:04:05 UTC::@:[5306]:LOG: database system is ready to accept connections" ,
57+ "message" : (
58+ "2021-01-02 03:04:05 UTC::@:[5306]:LOG: database system is ready to accept connections"
59+ ),
5660 }
5761 ],
5862 }
@@ -90,14 +94,22 @@ def test_awslogs_handler_step_functions_tags_added_properly(
9094 {
9195 "messageType" : "DATA_MESSAGE" ,
9296 "owner" : "425362996713" ,
93- "logGroup" : "/aws/vendedlogs/states/logs-to-traces-sequential-Logs" ,
94- "logStream" : "states/logs-to-traces-sequential/2022-11-10-15-50/7851b2d9" ,
97+ "logGroup" : (
98+ "/aws/vendedlogs/states/logs-to-traces-sequential-Logs"
99+ ),
100+ "logStream" : (
101+ "states/logs-to-traces-sequential/2022-11-10-15-50/7851b2d9"
102+ ),
95103 "subscriptionFilters" : ["testFilter" ],
96104 "logEvents" : [
97105 {
98- "id" : "37199773595581154154810589279545129148442535997644275712" ,
106+ "id" : (
107+ "37199773595581154154810589279545129148442535997644275712"
108+ ),
99109 "timestamp" : 1668095539607 ,
100- "message" : '{"id": "1","type": "ExecutionStarted","details": {"input": "{}","inputDetails": {"truncated": "false"},"roleArn": "arn:aws:iam::12345678910:role/service-role/StepFunctions-test-role-a0iurr4pt"},"previous_event_id": "0","event_timestamp": "1716992192441","execution_arn": "arn:aws:states:us-east-1:12345678910:execution:StepFunction1:ccccccc-d1da-4c38-b32c-2b6b07d713fa","redrive_count": "0"}' ,
110+ "message" : (
111+ '{"id": "1","type": "ExecutionStarted","details": {"input": "{}","inputDetails": {"truncated": "false"},"roleArn": "arn:aws:iam::12345678910:role/service-role/StepFunctions-test-role-a0iurr4pt"},"previous_event_id": "0","event_timestamp": "1716992192441","execution_arn": "arn:aws:states:us-east-1:12345678910:execution:StepFunction1:ccccccc-d1da-4c38-b32c-2b6b07d713fa","redrive_count": "0"}'
112+ ),
101113 }
102114 ],
103115 }
@@ -139,13 +151,19 @@ def test_awslogs_handler_step_functions_customized_log_group(
139151 "messageType" : "DATA_MESSAGE" ,
140152 "owner" : "425362996713" ,
141153 "logGroup" : "test/logs" ,
142- "logStream" : "states/logs-to-traces-sequential/2022-11-10-15-50/7851b2d9" ,
154+ "logStream" : (
155+ "states/logs-to-traces-sequential/2022-11-10-15-50/7851b2d9"
156+ ),
143157 "subscriptionFilters" : ["testFilter" ],
144158 "logEvents" : [
145159 {
146- "id" : "37199773595581154154810589279545129148442535997644275712" ,
160+ "id" : (
161+ "37199773595581154154810589279545129148442535997644275712"
162+ ),
147163 "timestamp" : 1668095539607 ,
148- "message" : '{"id": "1","type": "ExecutionStarted","details": {"input": "{}","inputDetails": {"truncated": "false"},"roleArn": "arn:aws:iam::12345678910:role/service-role/StepFunctions-test-role-a0iurr4pt"},"previous_event_id": "0","event_timestamp": "1716992192441","execution_arn": "arn:aws:states:us-east-1:12345678910:execution:StepFunction2:ccccccc-d1da-4c38-b32c-2b6b07d713fa","redrive_count": "0"}' ,
164+ "message" : (
165+ '{"id": "1","type": "ExecutionStarted","details": {"input": "{}","inputDetails": {"truncated": "false"},"roleArn": "arn:aws:iam::12345678910:role/service-role/StepFunctions-test-role-a0iurr4pt"},"previous_event_id": "0","event_timestamp": "1716992192441","execution_arn": "arn:aws:states:us-east-1:12345678910:execution:StepFunction2:ccccccc-d1da-4c38-b32c-2b6b07d713fa","redrive_count": "0"}'
166+ ),
149167 }
150168 ],
151169 }
@@ -179,14 +197,22 @@ def test_awslogs_handler_lambda_log(self):
179197 {
180198 "messageType" : "DATA_MESSAGE" ,
181199 "owner" : "123456789012" ,
182- "logGroup" : "/aws/lambda/test-lambda-default-log-group" ,
183- "logStream" : "2023/11/06/[$LATEST]b25b1f977b3e416faa45a00f427e7acb" ,
200+ "logGroup" : (
201+ "/aws/lambda/test-lambda-default-log-group"
202+ ),
203+ "logStream" : (
204+ "2023/11/06/[$LATEST]b25b1f977b3e416faa45a00f427e7acb"
205+ ),
184206 "subscriptionFilters" : ["testFilter" ],
185207 "logEvents" : [
186208 {
187- "id" : "37199773595581154154810589279545129148442535997644275712" ,
209+ "id" : (
210+ "37199773595581154154810589279545129148442535997644275712"
211+ ),
188212 "timestamp" : 1668095539607 ,
189- "message" : "2021-01-02 03:04:05 UTC::@:[5306]:LOG: database system is ready to accept connections" ,
213+ "message" : (
214+ "2021-01-02 03:04:05 UTC::@:[5306]:LOG: database system is ready to accept connections"
215+ ),
190216 }
191217 ],
192218 }
@@ -326,7 +352,9 @@ def test_get_state_machine_arn(self):
326352 {
327353 "message" : json .dumps (
328354 {
329- "execution_arn" : "arn:aws:states:sa-east-1:425362996713:express:my-Various-States:7f653fda-c79a-430b-91e2-3f97eb87cabb:862e5d40-a457-4ca2-a3c1-78485bd94d3f"
355+ "execution_arn" : (
356+ "arn:aws:states:sa-east-1:425362996713:express:my-Various-States:7f653fda-c79a-430b-91e2-3f97eb87cabb:862e5d40-a457-4ca2-a3c1-78485bd94d3f"
357+ )
330358 }
331359 ),
332360 }
@@ -342,7 +370,9 @@ def test_get_state_machine_arn(self):
342370 {
343371 "message" : json .dumps (
344372 {
345- "execution_arn" : "arn:aws:states:sa-east-1:425362996713:express:my-Various-States/7f653fda-c79a-430b-91e2-3f97eb87cabb:862e5d40-a457-4ca2-a3c1-78485bd94d3f"
373+ "execution_arn" : (
374+ "arn:aws:states:sa-east-1:425362996713:express:my-Various-States/7f653fda-c79a-430b-91e2-3f97eb87cabb:862e5d40-a457-4ca2-a3c1-78485bd94d3f"
375+ )
346376 }
347377 )
348378 }
@@ -359,7 +389,9 @@ def test_get_state_machine_arn(self):
359389 {
360390 "message" : json .dumps (
361391 {
362- "execution_arn" : "arn:aws:states:sa-east-1:425362996713:express:my-Various-States\\ 7f653fda-c79a-430b-91e2-3f97eb87cabb:862e5d40-a457-4ca2-a3c1-78485bd94d3f"
392+ "execution_arn" : (
393+ "arn:aws:states:sa-east-1:425362996713:express:my-Various-States\\ 7f653fda-c79a-430b-91e2-3f97eb87cabb:862e5d40-a457-4ca2-a3c1-78485bd94d3f"
394+ )
363395 }
364396 )
365397 }
0 commit comments