mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-07-13 14:02:16 +00:00
test(redact): cover Slack App-Level (xapp-) token redaction
This commit is contained in:
parent
fdb9620ac4
commit
e13b6ce1c6
1 changed files with 6 additions and 0 deletions
|
|
@ -41,6 +41,12 @@ class TestKnownPrefixes:
|
|||
result = redact_sensitive_text(token)
|
||||
assert "a" * 14 not in result
|
||||
|
||||
def test_slack_app_token(self):
|
||||
token = "xapp-1-A1234567890-B1234567890-C1234567890"
|
||||
result = redact_sensitive_text(token)
|
||||
assert "A1234567890-B1234567890-C1234567890" not in result
|
||||
assert "xapp-1" in result
|
||||
|
||||
def test_google_api_key(self):
|
||||
result = redact_sensitive_text("AIzaSyB-abc123def456ghi789jklmno012345")
|
||||
assert "abc123def456" not in result
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue