diff --git a/shenyu-e2e/shenyu-e2e-case/shenyu-e2e-case-spring-cloud/k8s/script/e2e-springcloud-sync.sh b/shenyu-e2e/shenyu-e2e-case/shenyu-e2e-case-spring-cloud/k8s/script/e2e-springcloud-sync.sh index 402a130f8174..dd6eefed1f4d 100644 --- a/shenyu-e2e/shenyu-e2e-case/shenyu-e2e-case-spring-cloud/k8s/script/e2e-springcloud-sync.sh +++ b/shenyu-e2e/shenyu-e2e-case/shenyu-e2e-case-spring-cloud/k8s/script/e2e-springcloud-sync.sh @@ -34,14 +34,14 @@ kubectl apply -f "${PRGDIR}"/shenyu-cm.yml SYNC_ARRAY=("websocket" "http" "zookeeper" "etcd") MIDDLEWARE_SYNC_ARRAY=("zookeeper" "etcd") for sync in ${SYNC_ARRAY[@]}; do + echo -e "------------------\n" kubectl apply -f "$SHENYU_TESTCASE_DIR"/k8s/shenyu-mysql.yml sleep 20s - echo -e "------------------\n" echo "[Start ${sync} synchronous] create shenyu-admin-${sync}.yml shenyu-bootstrap-${sync}.yml shenyu-examples-springcloud.yml" # shellcheck disable=SC2199 # shellcheck disable=SC2076 if [[ "${MIDDLEWARE_SYNC_ARRAY[@]}" =~ "${sync}" ]]; then - kubectl apply -f "$SHENYU_TESTCASE_DIR"/k8s/shenyu-"${sync}".yml + kubectl apply -f "${SHENYU_TESTCASE_DIR}"/k8s/shenyu-"${sync}".yml sleep 10s fi kubectl apply -f "${PRGDIR}"/shenyu-admin-"${sync}".yml @@ -61,7 +61,7 @@ for sync in ${SYNC_ARRAY[@]}; do echo "${sync}-sync-e2e-test failed" exit 1 fi - kubectl delete -f "$SHENYU_TESTCASE_DIR"/k8s/shenyu-mysql.yml + kubectl delete -f "${SHENYU_TESTCASE_DIR}"/k8s/shenyu-mysql.yml kubectl delete -f "${PRGDIR}"/shenyu-admin-"${sync}".yml kubectl delete -f "${PRGDIR}"/shenyu-bootstrap-"${sync}".yml kubectl delete -f "${PRGDIR}"/shenyu-examples-springcloud.yml