[skip e2e]Add docker restart step for deploy test (#16125)

Signed-off-by: zhuwenxing <wenxing.zhu@zilliz.com>
pull/16131/head
zhuwenxing 2022-03-21 17:33:25 +08:00 committed by GitHub
parent 8572be4f9a
commit 2e708a2910
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 22 additions and 0 deletions

View File

@ -209,6 +209,28 @@ then
python scripts/action_after_upgrade.py || error_exit
fi
# test for third deployment(after docker-compose restart)
pushd ${Deploy_Dir}
printf "start to restart milvus\n"
docker-compose restart
check_healthy
docker-compose ps
popd
# wait for milvus ready
sleep 120
printf "test for third deployment\n"
if [ "$Task" == "reinstall" ];
then
python scripts/action_after_reinstall.py || error_exit
fi
if [ "$Task" == "upgrade" ];
then
python scripts/action_after_upgrade.py || error_exit
fi
pushd ${Deploy_Dir}
# clean env
docker-compose ps