From b52c2a9719c61956e2f06c39e92ad31689564cca Mon Sep 17 00:00:00 2001 From: duanmengkk Date: Thu, 7 Dec 2023 17:01:05 +0800 Subject: [PATCH] feat: Add e2e approvers and uncomment some testcase Signed-off-by: duanmengkk --- hack/rune2e.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/hack/rune2e.sh b/hack/rune2e.sh index 227fb7725..2f2e1e9cd 100755 --- a/hack/rune2e.sh +++ b/hack/rune2e.sh @@ -33,7 +33,7 @@ util::wait_for_condition "mcs of member2 are ready" \ nginx_service_ip=$(kubectl -n kosmos-e2e get svc nginx-service -o=jsonpath='{.spec.clusterIP}') # e2e test for access nginx service -#docker exec -it ${HOST_CLUSTER_NAME}-control-plane sh -c "curl -sSf -m 5 ${nginx_service_ip}:80" && echo "success" || { echo "fail"; exit 1; } +sleep 100 && docker exec -i ${HOST_CLUSTER_NAME}-control-plane sh -c "curl -sSf -m 5 ${nginx_service_ip}:80" && echo "success" || { echo "fail"; exit 1; } # e2e for mysql-operator kubectl --context="kind-cluster-host" apply -f "${ROOT}"/../test/e2e/deploy/mysql-operator @@ -44,9 +44,9 @@ util::wait_for_condition "mysql operator are ready" \ #kubectl --context="kind-cluster-host" exec -it /bin/sh -c kubectl --context="kind-${HOST_CLUSTER_NAME}" apply -f "${ROOT}"/../test/e2e/deploy/cr -#util::wait_for_condition "mysql cr are ready" \ -# "[ \$(kubectl get pods -n kosmos-e2e --field-selector=status.phase=Running --no-headers | wc -l) -eq 2 ]" \ -# 1200 +util::wait_for_condition "mysql cr are ready" \ + "[ \$(kubectl get pods -n kosmos-e2e --field-selector=status.phase=Running --no-headers | wc -l) -eq 2 ]" \ + 1200 echo "E2e test of mysql-operator success"