Skip to content

Commit

Permalink
[type:fix] e2e k8s
Browse files Browse the repository at this point in the history
  • Loading branch information
moremind committed Oct 9, 2023
1 parent 13f836c commit c4bd885
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit c4bd885

Please sign in to comment.