test: Remove skip marker from MCP authentication tests

These tests use local in-process MCP servers and don't require external
API calls or recordings. They can run in both replay and record modes
without issues since they don't depend on pre-recorded API responses.
This commit is contained in:
Omar Abdelwahab 2025-11-13 19:07:37 -08:00
parent 8d30c4018d
commit 0391aaa8eb

View file

@ -4,8 +4,6 @@
# 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
from llama_stack.core.library_client import LlamaStackAsLibraryClient
@ -13,12 +11,6 @@ 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 authorization tests. Run with --inference-mode=record-if-missing to generate.",
)
def test_mcp_authorization_bearer(compat_client, text_model_id):
"""Test that bearer authorization is correctly applied to MCP requests."""