mirror of https://github.com/milvus-io/milvus.git
[skip ci]Add a shell command to change the chaos type (#9972)
Signed-off-by: zhuwenxing <wenxing.zhu@zilliz.com>pull/9978/head
parent
ac7bacbbcc
commit
12b71434c2
|
@ -80,6 +80,7 @@ jobs:
|
|||
working-directory: tests/python_client/chaos
|
||||
run: |
|
||||
# replace chaos object
|
||||
sed -i "s/TESTS_CONFIG_LOCATION =.*/TESTS_CONFIG_LOCATION = \'chaos_objects\/pod_kill\/'/g" constants.py
|
||||
sed -i "s/ALL_CHAOS_YAMLS =.*/ALL_CHAOS_YAMLS = \'chaos_${{ matrix.pod }}_podkill.yaml\'/g" constants.py
|
||||
cat constants.py
|
||||
pytest -s -v test_chaos.py --host 127.0.0.1
|
||||
|
|
|
@ -24,7 +24,7 @@ DELTA_PER_INS = 10 # entities per insert
|
|||
ENTITIES_FOR_SEARCH = 1000 # entities for search_collection
|
||||
|
||||
CHAOS_CONFIG_ENV = 'CHAOS_CONFIG_PATH' # env variables for chao path
|
||||
TESTS_CONFIG_LOCATION = 'chaos_objects/' # path to the chaos CRD
|
||||
TESTS_CONFIG_LOCATION = 'chaos_objects/pod_kill/' # path to the chaos CRD
|
||||
ALL_CHAOS_YAMLS = 'chaos_datanode*.yaml' # chaos file name(s) to be run against
|
||||
WAIT_PER_OP = 10 # time to wait in seconds between operations
|
||||
DEFAULT_INDEX_PARAM = {"index_type": "IVF_SQ8", "metric_type": "L2", "params": {"nlist": 64}}
|
||||
|
|
Loading…
Reference in New Issue