Skip to content

Commit 3efeb46

Browse files
committed
feat: Add unittest
1 parent 682adf4 commit 3efeb46

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

aws/logs_monitoring/tests/test_parsing.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,16 @@ def test_apigateway_event(self):
122122
parse_event_source({"awslogs": "logs"}, "/aws/http-api/my-project"),
123123
"apigateway",
124124
)
125-
125+
self.assertEqual(
126+
parse_event_source({"awslogs": "logs"},
127+
"/aws/vendedlogs/http-api/my-project"),
128+
"apigateway",
129+
)
130+
self.assertEqual(
131+
parse_event_source({"awslogs": "logs"},
132+
"/aws/vendedlogs/http-api/my-project"),
133+
"apigateway",
134+
)
126135
def test_dms_event(self):
127136
self.assertEqual(
128137
parse_event_source({"awslogs": "logs"}, "dms-tasks-test-instance"), "dms"

0 commit comments

Comments
 (0)