mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-12-04 04:49:08 +08:00
d379a23dae
Signed-off-by: zhuwenxing <wenxing.zhu@zilliz.com> Signed-off-by: zhuwenxing <wenxing.zhu@zilliz.com>
44 lines
1.4 KiB
Python
44 lines
1.4 KiB
Python
import pytest
|
|
|
|
|
|
def pytest_addoption(parser):
|
|
parser.addoption("--milvus_ns", action="store", default="chaos-testing", help="milvus_ns")
|
|
parser.addoption("--chaos_type", action="store", default="pod_kill", help="chaos_type")
|
|
parser.addoption("--target_component", action="store", default="querynode", help="target_component")
|
|
parser.addoption("--chaos_duration", action="store", default="1m", help="chaos_duration")
|
|
parser.addoption("--chaos_interval", action="store", default="10s", help="chaos_interval")
|
|
parser.addoption("--request_duration", action="store", default="3m", help="request_duration")
|
|
parser.addoption("--is_check", action="store", type=bool, default=False, help="is_check")
|
|
|
|
@pytest.fixture
|
|
def milvus_ns(request):
|
|
return request.config.getoption("--milvus_ns")
|
|
|
|
@pytest.fixture
|
|
def chaos_type(request):
|
|
return request.config.getoption("--chaos_type")
|
|
|
|
|
|
@pytest.fixture
|
|
def target_component(request):
|
|
return request.config.getoption("--target_component")
|
|
|
|
|
|
@pytest.fixture
|
|
def chaos_duration(request):
|
|
return request.config.getoption("--chaos_duration")
|
|
|
|
|
|
@pytest.fixture
|
|
def chaos_interval(request):
|
|
return request.config.getoption("--chaos_interval")
|
|
|
|
|
|
@pytest.fixture
|
|
def request_duration(request):
|
|
return request.config.getoption("--request_duration")
|
|
|
|
|
|
@pytest.fixture
|
|
def is_check(request):
|
|
return request.config.getoption("--is_check") |