From e19b8f211499b4aa904f5ced5b0e7d93e20c2658 Mon Sep 17 00:00:00 2001 From: zhuwenxing Date: Mon, 30 Dec 2024 14:34:51 +0800 Subject: [PATCH] test: update default value of pytest addoption (#38836) /kind improvement Signed-off-by: zhuwenxing --- tests/python_client/chaos/test_chaos_apply.py | 3 +-- tests/python_client/conftest.py | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/tests/python_client/chaos/test_chaos_apply.py b/tests/python_client/chaos/test_chaos_apply.py index 76789da9a736e..43931aa859a17 100644 --- a/tests/python_client/chaos/test_chaos_apply.py +++ b/tests/python_client/chaos/test_chaos_apply.py @@ -39,8 +39,7 @@ def reconnect(self): if self.user and self.password: connections.connect('default', host=self.host, port=self.port, user=self.user, - password=self.password, - secure=True) + password=self.password) else: connections.connect('default', host=self.host, port=self.port) if connections.has_connection("default") is False: diff --git a/tests/python_client/conftest.py b/tests/python_client/conftest.py index c2b5f105fbf8e..03f6b2007d57f 100644 --- a/tests/python_client/conftest.py +++ b/tests/python_client/conftest.py @@ -22,8 +22,8 @@ def pytest_addoption(parser): parser.addoption("--host", action="store", default="localhost", help="service's ip") parser.addoption("--service", action="store", default="", help="service address") parser.addoption("--port", action="store", default=19530, help="service's port") - parser.addoption("--user", action="store", default="root", help="user name for connection") - parser.addoption("--password", action="store", default="Milvus", help="password for connection") + parser.addoption("--user", action="store", default="", help="user name for connection") + parser.addoption("--password", action="store", default="", help="password for connection") parser.addoption("--db_name", action="store", default="default", help="database name for connection") parser.addoption("--secure", action="store", default=False, help="secure for connection") parser.addoption("--milvus_ns", action="store", default="chaos-testing", help="milvus_ns")