소스 검색

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

maziggy 3 일 전
부모
커밋
549c87b926
1개의 변경된 파일과 2개의 추가작업 그리고 1개의 파일을 삭제
  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: