Update pymilvus version and modify some cases (#23787)

Signed-off-by: nico <cheng.yuan@zilliz.com>
This commit is contained in:
nico 2023-05-06 16:54:39 +08:00 committed by GitHub
parent a70288555a
commit aae67f7c5d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 6 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.4.0.dev19
pymilvus==2.4.0.dev23
pytest-rerunfailures==9.1.1
git+https://github.com/Projectplace/pytest-tags
ndg-httpsclient

View File

@ -931,7 +931,7 @@ class TestConnectUriInvalid(TestcaseBase):
check_items={ct.err_code: 2})
@pytest.mark.tags(ct.CaseLabel.L2)
@pytest.mark.parametrize("port", ["8080", "443", "0", "65536"])
@pytest.mark.parametrize("port", ["8080", "443", "0", "65534"])
@pytest.mark.parametrize("connect_name", [DefaultConfig.DEFAULT_USING])
@pytest.mark.parametrize("protocol", ["http", "https"])
def test_parameters_with_invalid_port(self, host, port, connect_name, protocol):
@ -947,7 +947,7 @@ class TestConnectUriInvalid(TestcaseBase):
@pytest.mark.tags(ct.CaseLabel.L2)
@pytest.mark.parametrize("host", ["www.google.com"])
@pytest.mark.parametrize("port", ["65535", "19530"])
@pytest.mark.parametrize("port", ["65534", "19530"])
@pytest.mark.parametrize("connect_name", [DefaultConfig.DEFAULT_USING])
@pytest.mark.parametrize("protocol", ["http", "https"])
def test_parameters_with_invalid_url(self, host, port, connect_name, protocol):

View File

@ -479,7 +479,7 @@ class TestInsertOperation(TestcaseBase):
"""
collection_w = self.init_collection_wrap(name=cf.gen_unique_str(prefix))
partition_name = cf.gen_unique_str(prefix)
partition_w1 = self.init_partition_wrap(collection_w, partition_name=partition_name)
partition_w1 = self.init_partition_wrap(collection_w, partition_name)
df = cf.gen_default_dataframe_data(ct.default_nb)
mutation_res, _ = collection_w.insert(data=df, partition_name=partition_w1.name)
assert mutation_res.insert_count == ct.default_nb
@ -992,7 +992,7 @@ class TestInsertBinary(TestcaseBase):
collection_w = self.init_collection_wrap(name=c_name, schema=default_binary_schema)
df, _ = cf.gen_default_binary_dataframe_data(ct.default_nb)
partition_name = cf.gen_unique_str(prefix)
partition_w1 = self.init_partition_wrap(collection_w, partition_name=partition_name)
partition_w1 = self.init_partition_wrap(collection_w, partition_name)
mutation_res, _ = collection_w.insert(data=df, partition_name=partition_w1.name)
assert mutation_res.insert_count == ct.default_nb

View File

@ -503,8 +503,7 @@ class TestPartitionParams(TestcaseBase):
@pytest.mark.tags(CaseLabel.L1)
@pytest.mark.parametrize("data", [cf.gen_default_dataframe_data(10),
cf.gen_default_list_data(10),
cf.gen_default_tuple_data(10)])
cf.gen_default_list_data(10)])
def test_partition_insert(self, data):
"""
target: verify insert entities multiple times