Skip to content

Commit

Permalink
chore: Add logging for runtime incident messages in assert_runtime_in…
Browse files Browse the repository at this point in the history
…cident_message_sent
  • Loading branch information
kooomix committed Aug 5, 2024
1 parent 05dfbcc commit cb07654
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests_scripts/runtime/alerts.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,10 @@ def assert_all_messages_sent(self, begin_time, cluster):

def assert_runtime_incident_message_sent(messages, cluster):
found = 0
Logger.logger.info(f"total messages found: {len(messages)}, looking for runtime incident messages")
if len(messages) > 0:
Logger.logger.info(f"first message: {messages[0]}")

for message in messages:
message_string = str(message)
if "New threat found" in message_string and cluster in message_string and "redis" in message_string:
Expand Down

0 comments on commit cb07654

Please sign in to comment.