fix(dlp): block self-test case creation

This commit is contained in:
igor04091968
2026-05-14 20:49:00 +03:00
parent 76d1377736
commit 0098abe426
7 changed files with 65 additions and 1 deletions
@@ -0,0 +1,8 @@
#!/usr/bin/env python3
from __future__ import annotations
def is_self_test_case(incident_id: str | None, title: str | None) -> bool:
incident = str(incident_id or "").lower()
label = str(title or "").lower()
return "|self_test|" in incident or label.startswith("dlp self_test")