From c4bd885ff46353da463d0db55376abc32d0fb85f Mon Sep 17 00:00:00 2001 From: moremind Date: Mon, 9 Oct 2023 14:33:49 +0800 Subject: [PATCH] [type:fix] e2e k8s --- .../k8s/script/e2e-springcloud-sync.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 13e7bf739f1f..1511da3777e8 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 @@ -36,7 +36,7 @@ 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 + sleep 30s echo "[Start ${sync} synchronous] create shenyu-admin-${sync}.yml shenyu-bootstrap-${sync}.yml shenyu-examples-springcloud.yml" # shellcheck disable=SC2199 # shellcheck disable=SC2076 @@ -55,13 +55,13 @@ for sync in ${SYNC_ARRAY[@]}; do ## run e2e-test ./mvnw -B -f ./shenyu-e2e/pom.xml -pl shenyu-e2e-case/shenyu-e2e-case-spring-cloud -am test + kubectl logs "$(kubectl get pod -o wide | grep shenyu-admin | awk '{print $1}')" + kubectl logs "$(kubectl get pod -o wide | grep shenyu-bootstrap | awk '{print $1}')" # shellcheck disable=SC2181 if (($?)); then echo "${sync}-sync-e2e-test failed" exit 1 fi - kubectl logs "$(kubectl get pod -o wide | grep shenyu-admin | awk '{print $1}')" - kubectl logs "$(kubectl get pod -o wide | grep shenyu-bootstrap | awk '{print $1}')" 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