mirror of
https://gitee.com/milvus-io/milvus.git
synced 2025-12-28 14:35:27 +08:00
test: add testcases for add/alter/drop text embedding function (#46229)
/kind improvement Signed-off-by: zhuwenxing <wenxing.zhu@zilliz.com>
This commit is contained in:
parent
abe0318bec
commit
f9ff0e8402
@ -58,6 +58,8 @@ def pytest_addoption(parser):
|
||||
|
||||
parser.addoption("--tei_reranker_endpoint", action="store", default="http://text-rerank-service.milvus-ci.svc.cluster.local:80", help="tei rerank endpoint")
|
||||
parser.addoption("--vllm_reranker_endpoint", action="store", default="http://vllm-rerank-service.milvus-ci.svc.cluster.local:80", help="vllm rerank endpoint")
|
||||
# L3 test options for alter function tests
|
||||
parser.addoption("--tei_endpoint_2", action="store", default="", help="second tei embedding endpoint for alter tests")
|
||||
|
||||
@pytest.fixture
|
||||
def host(request):
|
||||
@ -218,6 +220,13 @@ def request_duration(request):
|
||||
def tei_endpoint(request):
|
||||
return request.config.getoption("--tei_endpoint")
|
||||
|
||||
@pytest.fixture
|
||||
def tei_endpoint_2(request):
|
||||
endpoint = request.config.getoption("--tei_endpoint_2")
|
||||
if not endpoint:
|
||||
pytest.skip("tei_endpoint_2 not configured")
|
||||
return endpoint
|
||||
|
||||
@pytest.fixture
|
||||
def tei_reranker_endpoint(request):
|
||||
return request.config.getoption("--tei_reranker_endpoint")
|
||||
|
||||
@ -28,8 +28,8 @@ pytest-parallel
|
||||
pytest-random-order
|
||||
|
||||
# pymilvus
|
||||
pymilvus==2.7.0rc83
|
||||
pymilvus[bulk_writer]==2.7.0rc83
|
||||
pymilvus==2.7.0rc84
|
||||
pymilvus[bulk_writer]==2.7.0rc84
|
||||
# for protobuf
|
||||
protobuf>=5.29.5
|
||||
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user