mirror of
https://gitee.com/milvus-io/milvus.git
synced 2026-01-07 19:31:51 +08:00
[skip ci]Update chaos_test.sh (#12843)
Signed-off-by: zhuwenxing <wenxing.zhu@zilliz.com>
This commit is contained in:
parent
4cd314d41c
commit
8bb6e47868
@ -48,8 +48,8 @@ then
|
||||
fi
|
||||
|
||||
# wait all pod ready
|
||||
kubectl wait --for=condition=Ready pod -l app.kubernetes.io/instance=milvus-chaos -n chaos-testing --timeout=360s
|
||||
kubectl wait --for=condition=Ready pod -l release=milvus-chaos -n chaos-testing --timeout=360s
|
||||
kubectl wait --for=condition=Ready pod -l app.kubernetes.io/instance=${release} -n chaos-testing --timeout=360s
|
||||
kubectl wait --for=condition=Ready pod -l release=${release} -n chaos-testing --timeout=360s
|
||||
|
||||
popd
|
||||
|
||||
@ -71,7 +71,7 @@ then
|
||||
else
|
||||
host=$(kubectl get svc/${release}-milvus -o jsonpath="{.spec.clusterIP}")
|
||||
fi
|
||||
|
||||
pytest -s -v ../testcases/test_e2e.py --host "$host" --log-cli-level=INFO --capture=no
|
||||
python scripts/hello_milvus.py --host "$host"
|
||||
# chaos test
|
||||
export ENABLE_TRACEBACK=False
|
||||
@ -90,6 +90,7 @@ echo "start running e2e test"
|
||||
kubectl wait --for=condition=Ready pod -l app.kubernetes.io/instance=${release} -n chaos-testing --timeout=360s
|
||||
kubectl wait --for=condition=Ready pod -l release=${release} -n chaos-testing --timeout=360s
|
||||
|
||||
pytest -s -v ../testcases/test_e2e.py --host "$host" --log-cli-level=INFO --capture=no
|
||||
python scripts/hello_milvus.py --host "$host" || echo "e2e test fail"
|
||||
|
||||
# save logs
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user