[Bugfix] Redact api_key in non-default args log (#52523)
Signed-off-by: LuckyStep <67696304+Andy365-365@users.noreply.github.com>
This commit is contained in:
@@ -37,6 +37,12 @@ def test_nixl_side_channel_host_is_not_compile_factor(
|
||||
assert "VLLM_NIXL_SIDE_CHANNEL_HOST" not in envs.compile_factors()
|
||||
|
||||
|
||||
def test_api_key_is_not_compile_factor(monkeypatch: pytest.MonkeyPatch):
|
||||
monkeypatch.setenv("VLLM_API_KEY", "sk-super-secret")
|
||||
|
||||
assert "VLLM_API_KEY" not in envs.compile_factors()
|
||||
|
||||
|
||||
def test_p2p_side_channel_defaults_and_override(monkeypatch: pytest.MonkeyPatch):
|
||||
monkeypatch.delenv("VLLM_P2P_SIDE_CHANNEL_HOST", raising=False)
|
||||
monkeypatch.delenv("VLLM_P2P_SIDE_CHANNEL_PORT", raising=False)
|
||||
|
||||
Reference in New Issue
Block a user