From 8fe2fb3eb92cc3e6b634b6ff7084ef77119ac8b0 Mon Sep 17 00:00:00 2001 From: nico <109071306+NicoYuan1986@users.noreply.github.com> Date: Mon, 27 Nov 2023 12:56:25 +0800 Subject: [PATCH] test: update pymilvus version (#28636) issue: #17614 Signed-off-by: nico --- tests/python_client/requirements.txt | 2 +- tests/python_client/testcases/test_collection.py | 7 +++---- tests/python_client/testcases/test_partition.py | 5 +++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/tests/python_client/requirements.txt b/tests/python_client/requirements.txt index 57ef524b34..715e66ff45 100644 --- a/tests/python_client/requirements.txt +++ b/tests/python_client/requirements.txt @@ -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.2.post1.dev5 +pymilvus==2.3.3.post1.dev3 pytest-rerunfailures==9.1.1 git+https://github.com/Projectplace/pytest-tags ndg-httpsclient diff --git a/tests/python_client/testcases/test_collection.py b/tests/python_client/testcases/test_collection.py index 3082833988..ad4eb6a917 100644 --- a/tests/python_client/testcases/test_collection.py +++ b/tests/python_client/testcases/test_collection.py @@ -1103,7 +1103,7 @@ class TestCollectionOperation(TestcaseBase): fields = [] for k, v in DataType.__members__.items(): if v and v != DataType.UNKNOWN and v != DataType.STRING \ - and v != DataType.VARCHAR and v != DataType.FLOAT_VECTOR and v != DataType.FLOAT16_VECTOR \ + and v != DataType.VARCHAR and v != DataType.FLOAT_VECTOR \ and v != DataType.BINARY_VECTOR and v != DataType.ARRAY: field, _ = self.field_schema_wrap.init_field_schema(name=k.lower(), dtype=v) fields.append(field) @@ -3334,10 +3334,9 @@ class TestLoadPartition(TestcaseBase): description=description, check_task=CheckTasks.check_partition_property, check_items={"name": partition_name, "description": description, - "is_empty": True, "num_entities": 0} - ) + "is_empty": True, "num_entities": 0}) partition_w.drop() - error = {ct.err_code: 1, ct.err_msg: 'partitionID of partitionName:%s can not be find' % partition_name} + error = {ct.err_code: 200, ct.err_msg: 'partition not found[partition=%s]' % partition_name} partition_w.release(check_task=CheckTasks.err_res, check_items=error) @pytest.mark.tags(CaseLabel.L0) diff --git a/tests/python_client/testcases/test_partition.py b/tests/python_client/testcases/test_partition.py index df0ab55603..1e29f9480a 100644 --- a/tests/python_client/testcases/test_partition.py +++ b/tests/python_client/testcases/test_partition.py @@ -699,6 +699,7 @@ class TestPartitionOperations(TestcaseBase): check_items={ct.err_code: 1, ct.err_msg: "default partition cannot be deleted"}) @pytest.mark.tags(CaseLabel.L1) + @pytest.mark.skip("issue #28722") def test_partition_drop_partition_twice(self): """ target: verify drop the same partition twice @@ -947,7 +948,7 @@ class TestPartitionOperations(TestcaseBase): # insert data to partition partition_w.insert(cf.gen_default_dataframe_data(), check_task=CheckTasks.err_res, - check_items={ct.err_code: 1, ct.err_msg: "Partition not exist"}) + check_items={ct.err_code: 200, ct.err_msg: "partition not found"}) # TODO: update the assert error @pytest.mark.tags(CaseLabel.L1) @@ -1095,7 +1096,7 @@ class TestPartitionOperations(TestcaseBase): # insert data to partition partition_w.upsert(cf.gen_default_dataframe_data(), check_task=CheckTasks.err_res, - check_items={ct.err_code: 1, ct.err_msg: "Partition not exist"}) + check_items={ct.err_code: 200, ct.err_msg: "partition not found"}) @pytest.mark.tags(CaseLabel.L2) def test_partition_upsert_mismatched_data(self):