Skip to content

Commit 3aaba39

Browse files
authored
K8SPS-396: Increase timeouts for gr-self-healing test (#931)
* Increase timeouts of gr-self-haling test * Increase timeout * fix
1 parent a8a3d10 commit 3aaba39

File tree

8 files changed

+9
-8
lines changed

8 files changed

+9
-8
lines changed

e2e-tests/functions

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -782,7 +782,7 @@ deploy_chaos_mesh() {
782782
if [ -n "${MINIKUBE}" ]; then
783783
helm install chaos-mesh chaos-mesh/chaos-mesh --namespace=${NAMESPACE} --set chaosDaemon.runtime=docker --set dashboard.create=false --version ${CHAOS_MESH_VER} --wait
784784
else
785-
helm install chaos-mesh chaos-mesh/chaos-mesh --namespace=${NAMESPACE} --set chaosDaemon.runtime=containerd --set chaosDaemon.socketPath=/run/containerd/containerd.sock --set dashboard.create=false --version ${CHAOS_MESH_VER} --wait
785+
helm install chaos-mesh chaos-mesh/chaos-mesh --namespace=${NAMESPACE} --set chaosDaemon.runtime=containerd --set chaosDaemon.socketPath=/run/containerd/containerd.sock --set dashboard.create=false --version ${CHAOS_MESH_VER}
786786
fi
787787
if [[ -n $OPENSHIFT ]]; then
788788
oc adm policy add-scc-to-user privileged -z chaos-daemon --namespace=${NAMESPACE}

e2e-tests/tests/gr-self-healing/05-kill-primary.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ commands:
1010
1111
init_pod="$(get_primary_from_group_replication)"
1212
kill_pods "${NAMESPACE}" "pod" "$init_pod" "" "primary"
13-
sleep 10 # wait a bit for pod to be killed
13+
sleep 20 # wait a bit for pod to be killed
1414
1515
if [ "$init_pod" == "$(get_primary_from_group_replication)" ]; then
1616
echo "primary pod was not killed! something went wrong."

e2e-tests/tests/gr-self-healing/07-assert.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
apiVersion: kuttl.dev/v1beta1
22
kind: TestAssert
3-
timeout: 30
3+
timeout: 120
44
---
55
kind: ConfigMap
66
apiVersion: v1

e2e-tests/tests/gr-self-healing/12-write-data.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ commands:
1010
run_mysql \
1111
"INSERT myDB.myTable (id) VALUES (100503)" \
1212
"-h $(get_mysql_router_service $(get_cluster_name)) -P 6446 -uroot -proot_password"
13-
sleep 5
13+
sleep 10

e2e-tests/tests/gr-self-healing/13-assert.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
apiVersion: kuttl.dev/v1beta1
22
kind: TestAssert
3-
timeout: 30
3+
timeout: 240
44
---
55
apiVersion: ps.percona.com/v1alpha1
66
kind: PerconaServerMySQL

e2e-tests/tests/gr-self-healing/13-read-from-replicas.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
apiVersion: kuttl.dev/v1beta1
22
kind: TestStep
3-
timeout: 30
3+
timeout: 120
44
commands:
55
- script: |-
66
set -o errexit
@@ -13,3 +13,4 @@ commands:
1313
data=$(run_mysql "SELECT * FROM myDB.myTable" "-h ${host} -uroot -proot_password")
1414
kubectl create configmap -n "${NAMESPACE}" 13-read-from-replicas-${i} --from-literal=data="${data}"
1515
done
16+
sleep 20

e2e-tests/tests/gr-self-healing/14-cluster-crash.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ commands:
99
1010
kill_pods "${NAMESPACE}" "label" "app.kubernetes.io/instance" "gr-self-healing" "cluster-crash"
1111
sleep 30 # wait for crash
12-
timeout: 40
12+
timeout: 100

e2e-tests/tests/gr-self-healing/17-quorum-loss.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
apiVersion: kuttl.dev/v1beta1
22
kind: TestStep
3-
timeout: 30
3+
timeout: 480
44
commands:
55
- script: |-
66
set -o errexit

0 commit comments

Comments
 (0)