added a minor change

This commit is contained in:
Omar Abdelwahab 2025-11-03 15:10:32 -08:00
parent 6c57445139
commit 20654671e2

View file

@ -4,6 +4,7 @@
# This source code is licensed under the terms described in the LICENSE file in # This source code is licensed under the terms described in the LICENSE file in
# the root directory of this source tree. # the root directory of this source tree.
import os
import pytest import pytest
@ -13,6 +14,13 @@ from tests.common.mcp import make_mcp_server
from .helpers import setup_mcp_tools 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): 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. Test that JWT token is forwarded to MCP server for both list_tools and invoke_tool.