mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-11 19:56:03 +00:00
added a minor change
This commit is contained in:
parent
6c57445139
commit
20654671e2
1 changed files with 8 additions and 0 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue