Add test cases of load and other functions (#23992)

Signed-off-by: nico <cheng.yuan@zilliz.com>
This commit is contained in:
nico 2023-05-15 09:37:29 +08:00 committed by GitHub
parent c29d9b1b84
commit b04258b2d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 1145 additions and 1 deletions

View File

@ -238,6 +238,11 @@ class ResponseChecker:
if check_items["_async"]:
search_res.done()
search_res = search_res.result()
if check_items.get("output_fields", None):
for field in check_items['output_fields']:
assert field in search_res[0][0].entity._raw_data
assert len(check_items['output_fields']) == len(search_res[0][0].entity._raw_data)
log.info('search_results_check: Output fields of query searched is correct')
if len(search_res) != check_items["nq"]:
log.error("search_results_check: Numbers of query searched (%d) "
"is not equal with expected (%d)"

View File

@ -2727,7 +2727,7 @@ class TestLoadCollection(TestcaseBase):
2.create collection with 2 shards
3.insert and flush
4.load with 2 replica number
5.insert growng data
5.insert growing data
6.search and query
expected: Verify search and query results
"""

File diff suppressed because it is too large Load Diff