mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-03 09:53:45 +00:00
Added elasticsearch in conftest
This commit is contained in:
commit
0f547d6063
1 changed files with 13 additions and 1 deletions
|
|
@ -371,7 +371,19 @@ def vector_provider_wrapper(func):
|
||||||
inference_mode = os.environ.get("LLAMA_STACK_TEST_INFERENCE_MODE")
|
inference_mode = os.environ.get("LLAMA_STACK_TEST_INFERENCE_MODE")
|
||||||
if inference_mode == "live":
|
if inference_mode == "live":
|
||||||
# For live tests, try all providers (they'll skip if not available)
|
# For live tests, try all providers (they'll skip if not available)
|
||||||
all_providers = ["faiss", "sqlite-vec", "milvus", "chromadb", "pgvector", "weaviate", "qdrant", "elasticsearch"]
|
all_providers = [
|
||||||
|
"faiss",
|
||||||
|
"sqlite-vec",
|
||||||
|
"milvus",
|
||||||
|
"chromadb",
|
||||||
|
"pgvector",
|
||||||
|
"weaviate",
|
||||||
|
"qdrant",
|
||||||
|
"elasticsearch",
|
||||||
|
]
|
||||||
|
else:
|
||||||
|
# For CI tests (replay/record), only use providers that are available in ci-tests environment
|
||||||
|
all_providers = ["faiss", "sqlite-vec"]
|
||||||
|
|
||||||
return pytest.mark.parametrize("vector_io_provider_id", all_providers)(wrapper)
|
return pytest.mark.parametrize("vector_io_provider_id", all_providers)(wrapper)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue