From 458b4bee9c4731ac0cd5a5baecea738dd6718335 Mon Sep 17 00:00:00 2001 From: "chenguang.xu@datadoghq.com" Date: Mon, 4 Nov 2024 16:45:12 -0500 Subject: [PATCH] fix test error --- aws/logs_monitoring/tests/test_awslogs_handler.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aws/logs_monitoring/tests/test_awslogs_handler.py b/aws/logs_monitoring/tests/test_awslogs_handler.py index e59a8a1d..0c5a2c47 100644 --- a/aws/logs_monitoring/tests/test_awslogs_handler.py +++ b/aws/logs_monitoring/tests/test_awslogs_handler.py @@ -156,7 +156,7 @@ def test_awslogs_handler_step_functions_tags_added_properly( ) } } - awslogs_handler.metadata = {} + awslogs_handler.metadata = {"ddsource": "postgresql", "ddtags": "env:dev"} awslogs_handler.handle(eventFromCustomizedLogGroup) self.assertEqual( awslogs_handler.metadata[DD_SOURCE], AwsEventSource.STEPFUNCTION.value @@ -193,7 +193,7 @@ def test_awslogs_handler_step_functions_tags_added_properly( ) } } - awslogs_handler.metadata = {} + awslogs_handler.metadata = {"ddsource": "postgresql", "ddtags": "env:dev"} awslogs_handler.handle(eventFromCustomizedLogGroup) self.assertNotEqual( awslogs_handler.metadata[DD_SOURCE], AwsEventSource.STEPFUNCTION.value