[skip ci]Add a shell command to change the chaos type (#9972)

Signed-off-by: zhuwenxing <wenxing.zhu@zilliz.com>
pull/9978/head
zhuwenxing 2021-10-15 18:12:50 +08:00 committed by GitHub
parent ac7bacbbcc
commit 12b71434c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -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

View File

@ -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}}