Skip to content

Commit

Permalink
fix unit test error
Browse files Browse the repository at this point in the history
  • Loading branch information
nine5two7 committed Nov 4, 2024
1 parent f951348 commit acb99c6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion aws/logs_monitoring/tests/test_awslogs_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,10 @@ def test_awslogs_handler_step_functions_tags_added_properly(
self.assertEqual(
awslogs_handler.metadata[DD_SOURCE], AwsEventSource.STEPFUNCTION.value
)
self.assertEqual(
awslogs_handler.metadata[DD_HOST],
"arn:aws:states:us-east-1:12345678910:stateMachine:StepFunction1",
)

# SF customized log group
eventFromCustomizedLogGroup = {
Expand Down Expand Up @@ -158,7 +162,7 @@ def test_awslogs_handler_step_functions_tags_added_properly(
)
self.assertEqual(
awslogs_handler.metadata[DD_HOST],
"arn:aws:states:us-east-1:12345678910:statemachine:stepfunction1",
"arn:aws:states:us-east-1:12345678910:stateMachine:StepFunction1",
)

eventFromCustomizedLogGroup = {
Expand Down

0 comments on commit acb99c6

Please sign in to comment.