Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add e2e approvers and uncomment some testcase #316

Merged
merged 1 commit into from
Dec 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions hack/OWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
approvers:
- wuyingjun-lucky
- duanmengkk
reviewers:
- wuyingjun-lucky
- duanmengkk
8 changes: 4 additions & 4 deletions hack/rune2e.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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"

Expand Down
6 changes: 6 additions & 0 deletions test/OWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
approvers:
- wuyingjun-lucky
- duanmengkk
reviewers:
- wuyingjun-lucky
- duanmengkk
Loading