Skip to content

The agent that grows with you

test(agent): align strict URL redaction expectation

Yuan Licb3b47e202a5
diff --git a/tests/hermes_cli/test_debug.py b/tests/hermes_cli/test_debug.py
index 31c319d26f5..5b89d65fa6f 100644
--- a/tests/hermes_cli/test_debug.py
+++ b/tests/hermes_cli/test_debug.py
@@ -887,9 +887,10 @@ class TestCollectShareBundle:
assert query_token not in bundle
assert password not in bundle
- # Only the credential values go; the URLs stay readable.
+ # Query credentials are masked in place; strict URL redaction masks the
+ # complete userinfo field while preserving the host and port.
assert "export.csv?token=***&page=2" in bundle
- assert "alice:***@10.0.0.5:3128" in bundle
+ assert "***:***@10.0.0.5:3128" in bundle