mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-12-02 11:59:00 +08:00
Update pymilvus version and modify some cases (#23787)
Signed-off-by: nico <cheng.yuan@zilliz.com>
This commit is contained in:
parent
a70288555a
commit
aae67f7c5d
@ -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
|
||||
|
@ -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):
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user