From 20654671e2bafb1708c98f85fbadda5f1aad4d0b Mon Sep 17 00:00:00 2001 From: Omar Abdelwahab Date: Mon, 3 Nov 2025 15:10:32 -0800 Subject: [PATCH] added a minor change --- tests/integration/responses/test_mcp_jwt_passthrough.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/integration/responses/test_mcp_jwt_passthrough.py b/tests/integration/responses/test_mcp_jwt_passthrough.py index db87e86e4..276af8201 100644 --- a/tests/integration/responses/test_mcp_jwt_passthrough.py +++ b/tests/integration/responses/test_mcp_jwt_passthrough.py @@ -4,6 +4,7 @@ # This source code is licensed under the terms described in the LICENSE file in # the root directory of this source tree. +import os import pytest @@ -13,6 +14,13 @@ from tests.common.mcp import make_mcp_server from .helpers import setup_mcp_tools +# Skip these tests in replay mode until recordings are generated +pytestmark = pytest.mark.skipif( + os.environ.get("LLAMA_STACK_TEST_INFERENCE_MODE") == "replay", + reason="No recordings yet for JWT passthrough tests. Run with --inference-mode=record-if-missing to generate.", +) + + def test_mcp_jwt_passthrough_basic(compat_client, text_model_id, caplog): """ Test that JWT token is forwarded to MCP server for both list_tools and invoke_tool.