test: update sdk version and test cases[2.5] (#40359)

pr: #39960

Signed-off-by: nico <cheng.yuan@zilliz.com>
pull/40353/head
nico 2025-03-05 12:56:01 +08:00 committed by GitHub
parent 7cbd40c7a1
commit dddd2075bc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 12 additions and 7 deletions

View File

@ -28,8 +28,8 @@ pytest-parallel
pytest-random-order
# pymilvus
pymilvus==2.5.5rc13
pymilvus[bulk_writer]==2.5.5rc13
pymilvus==2.5.5rc17
pymilvus[bulk_writer]==2.5.5rc17
# for customize config test
python-benedict==0.24.3

View File

@ -3132,16 +3132,21 @@ class TestDescribeCollection(TestcaseBase):
description = \
{'collection_name': c_name, 'auto_id': False, 'num_shards': ct.default_shards_num, 'description': '',
'fields': [
{'field_id': 100, 'name': 'int64', 'description': '', 'type': 5, 'params': {}, 'is_primary': True},
{'field_id': 101, 'name': 'float', 'description': '', 'type': 10, 'params': {}},
{'field_id': 102, 'name': 'varchar', 'description': '', 'type': 21, 'params': {'max_length': 65535}},
{'field_id': 103, 'name': 'json_field', 'description': '', 'type': 23, 'params': {}},
{'field_id': 104, 'name': 'float_vector', 'description': '', 'type': 101, 'params': {'dim': 128}}
{'field_id': 100, 'name': 'int64', 'description': '', 'type': DataType.INT64, 'params': {},
'is_primary': True},
{'field_id': 101, 'name': 'float', 'description': '', 'type': DataType.FLOAT, 'params': {}},
{'field_id': 102, 'name': 'varchar', 'description': '', 'type': DataType.VARCHAR,
'params': {'max_length': 65535}},
{'field_id': 103, 'name': 'json_field', 'description': '', 'type': DataType.JSON, 'params': {}},
{'field_id': 104, 'name': 'float_vector', 'description': '', 'type': DataType.FLOAT_VECTOR,
'params': {'dim': 128}}
],
'functions': [], 'aliases': [], 'consistency_level': 0, 'properties': {},
'num_partitions': 1, 'enable_dynamic_field': False}
res = collection_w.describe()[0]
assert isinstance(res['collection_id'], int) and isinstance(res['created_timestamp'], int)
del res['collection_id']
del res['created_timestamp']
log.info(res)
assert description == res