fix test id not being set in headers

This commit is contained in:
Swapna Lekkala 2025-10-16 10:21:31 -07:00
parent 185de61d8e
commit a1e6d3eece

View file

@ -42,7 +42,7 @@ def pytest_sessionstart(session):
# Set test stack config type for api_recorder test isolation
stack_config = session.config.getoption("--stack-config", default=None)
if stack_config and stack_config.startswith("server:"):
if stack_config and (stack_config.startswith("server:") or stack_config.startswith("http")):
os.environ["LLAMA_STACK_TEST_STACK_CONFIG_TYPE"] = "server"
logger.info(f"Test stack config type: server (stack_config={stack_config})")
else: