test: add text embedding function restful api test (#42977)

/kind improvement

Signed-off-by: zhuwenxing <wenxing.zhu@zilliz.com>
This commit is contained in:
zhuwenxing 2025-06-27 10:46:41 +08:00 committed by GitHub
parent 2d73e6eaa8
commit 8bda337f52
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 1041 additions and 2555 deletions

View File

@ -9,7 +9,8 @@ def pytest_addoption(parser):
parser.addoption("--bucket_name", action="store", default="milvus-bucket", help="minio bucket name")
parser.addoption("--root_path", action="store", default="file", help="minio bucket root path")
parser.addoption("--release_name", action="store", default="my-release", help="release name")
# a tei endpoint for text embedding, default is http://text-embeddings-service.milvus-ci.svc.cluster.local:80 which is deployed in house
parser.addoption("--tei_endpoint", action="store", default="http://text-embeddings-service.milvus-ci.svc.cluster.local:80", help="tei endpoint")
@pytest.fixture
def endpoint(request):
@ -39,3 +40,7 @@ def root_path(request):
@pytest.fixture
def release_name(request):
return request.config.getoption("--release_name")
@pytest.fixture
def tei_endpoint(request):
return request.config.getoption("--tei_endpoint")

File diff suppressed because it is too large Load Diff