test: update pymilvus version and test cases (#30209)

issue: #17614

Signed-off-by: nico <cheng.yuan@zilliz.com>
pull/30214/head
nico 2024-01-23 14:40:55 +08:00 committed by GitHub
parent 4d0a6dbc25
commit e0beea7fb6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 7 deletions

View File

@ -12,7 +12,7 @@ allure-pytest==2.7.0
pytest-print==0.2.1
pytest-level==0.1.1
pytest-xdist==2.5.0
pymilvus==2.3.5rc8
pymilvus==2.3.6rc3
pytest-rerunfailures==9.1.1
git+https://github.com/Projectplace/pytest-tags
ndg-httpsclient

View File

@ -291,7 +291,7 @@ class TestCollectionSearchInvalid(TestcaseBase):
collection_w.search(vectors[:default_nq], invalid_search_field, default_search_params,
default_limit, default_search_exp,
check_task=CheckTasks.err_res,
check_items={"err_code": 65535,
check_items={"err_code": 1100,
"err_msg": "failed to create query plan: failed to get field schema "
"by name: %s not found" % invalid_search_field})
@ -523,9 +523,9 @@ class TestCollectionSearchInvalid(TestcaseBase):
collection_w.search(vectors[:default_nq], default_search_field,
default_search_params, default_limit, expression,
check_task=CheckTasks.err_res,
check_items={"err_code": 65535,
"err_msg": "failed to create query plan: predicate is not a "
"boolean expression: %s, data type: Bool" % expression})
check_items={"err_code": 1100,
"err_msg": "failed to create query plan: cannot parse expression:"
" %s" % expression})
@pytest.mark.tags(CaseLabel.L1)
@pytest.mark.parametrize("expression", ["int64 like 33", "float LIKE 33"])
@ -6073,7 +6073,7 @@ class TestSearchDiskann(TestcaseBase):
default_search_exp,
output_fields=output_fields,
check_task=CheckTasks.err_res,
check_items={"err_code": 65538,
check_items={"err_code": 65535,
"err_msg": "UnknownError"})
@pytest.mark.tags(CaseLabel.L2)
@ -9261,7 +9261,7 @@ class TestCollectionSearchJSON(TestcaseBase):
collection_w.search(vectors[:default_nq], default_search_field, {},
limit=ct.default_nb, expr=expression,
check_task=CheckTasks.err_res,
check_items={ct.err_code: 65535,
check_items={ct.err_code: 1100,
ct.err_msg: "failed to create query plan: cannot parse "
"expression: %s, error: contains_any operation "
"element must be an array" % expression})