fix(publicenv): redact internal work context terms
This commit is contained in:
@@ -33,6 +33,15 @@ def test_redact_public_lan_topology_recurses_json_values() -> None:
|
||||
assert redacted["nested"][0]["endpoint"] == "host:observability-a/signoz"
|
||||
|
||||
|
||||
def test_redact_public_lan_text_replaces_internal_work_context_terms() -> None:
|
||||
redacted = redact_public_lan_text("不得顯示工作視窗對話、批准!繼續 或 source_thread_id")
|
||||
|
||||
assert "工作視窗" not in redacted
|
||||
assert "批准!" not in redacted
|
||||
assert "source_thread_id" not in redacted
|
||||
assert "內部協作環境" in redacted
|
||||
|
||||
|
||||
def test_public_monitoring_tool_payload_drops_internal_probe_url() -> None:
|
||||
payload = public_monitoring_tool_payload(
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user