Skip to content

Commit cca0d57

Browse files
committed
added tests
1 parent abe1c74 commit cca0d57

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

tests/manual_tests/test_slack_integration_manual.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -359,13 +359,14 @@ def create_cpu_throttling_finding() -> Finding:
359359
"severity": "info"
360360
}
361361
)
362-
362+
table_rows = [["Row1_Col1", "Row1_Col2"], ["Row2_Col1", "Row2_Col2"]]
363+
table_block = TableBlock(table_rows, headers=["Header1", "Header2"])
363364
# Add explanation enrichment
364365
finding.add_enrichment([
365366
MarkdownBlock(
366367
'📘 *Alert Explanation:* This pod is throttled due to its CPU limit. This can occur even when CPU usage is far below the limit. <https://github.com/robusta-dev/alert-explanations/wiki/CPUThrottlingHigh-(Prometheus-Alert)|Learn more.>'),
367368
MarkdownBlock(
368-
"🛠 *Robusta's Recommendation:* Remove this pod's CPU limit entirely. <https://home.robusta.dev/blog/stop-using-cpu-limits/|Using CPU limits is *not* a best practice.>")
369+
"🛠 *Robusta's Recommendation:* Remove this pod's CPU limit entirely. <https://home.robusta.dev/blog/stop-using-cpu-limits/|Using CPU limits is *not* a best practice.>"),table_block
369370
], annotations={"unfurl": False})
370371

371372
# Instead of adding an SVG file which can cause JSON serialization issues,

0 commit comments

Comments
 (0)