Explorar el Código

Use a made-up token in the query-token redaction tests

maziggy hace 3 días
padre
commit
549c87b926
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      backend/tests/unit/test_query_token_redaction.py

+ 2 - 1
backend/tests/unit/test_query_token_redaction.py

@@ -18,7 +18,8 @@ import pytest
 from backend.app.core.logging_filters import QueryTokenRedactFilter, redact_query_tokens
 from backend.app.services.log_reader import sanitize_log_content
 
-TOKEN = "M8qxtTy4sHgSkUhAwwrOHSji8stuLIq0"
+# Made up. Never paste a token from a real log here, expired or not.
+TOKEN = "fake-test-token"
 
 
 def _record(msg: str, args) -> logging.LogRecord: