From 8c5705d39e8a9cd8faf4065a74180d52027b04f8 Mon Sep 17 00:00:00 2001 From: slekkala1 Date: Thu, 16 Oct 2025 10:29:07 -0700 Subject: [PATCH] fix: test id not being set in headers (#3827) # What does this PR do? When stack config is set to server in docker STACK_CONFIG_ARG=--stack-config=http://localhost:8321, the env variable was not getting correctly set and test id not set, causing This is needed for test-and-cut to work E openai.BadRequestError: Error code: 400 - {'detail': 'Invalid value: Test ID is required for file ID allocation'} https://github.com/llamastack/llama-stack-ops/actions/runs/18546211522/job/52864614068 ## Test Plan CI --- tests/integration/conftest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/integration/conftest.py b/tests/integration/conftest.py index 69660f7fb..7734b8654 100644 --- a/tests/integration/conftest.py +++ b/tests/integration/conftest.py @@ -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: