Skip to content

Commit 88608c5

Browse files
committed
e2e: fix previous tests
1 parent 6c4d7d4 commit 88608c5

37 files changed

Lines changed: 1024 additions & 743 deletions

stackgres-k8s/e2e/spec/previous/1.14/spec/abstract/dbops-major-version-upgrade

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -102,12 +102,6 @@ reset_cluster_internal() {
102102
"$@"
103103
fi
104104

105-
if [ -n "$DISTRIBUTEDLOGS_NAME" ]
106-
then
107-
kubectl create secret generic -n "$CLUSTER_NAMESPACE" "$DISTRIBUTEDLOGS_NAME" \
108-
--from-literal=superuser-password="$RANDOM"
109-
fi
110-
111105
wait_pods_running "$CLUSTER_NAMESPACE" "$PODS_RUNNING"
112106
wait_cluster "$CLUSTER_NAME" "$CLUSTER_NAMESPACE"
113107
switch_cluster_to_first "$CLUSTER_NAME" "$CLUSTER_NAMESPACE"

stackgres-k8s/e2e/spec/previous/1.14/spec/abstract/patroni

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ patroni_readiness_check() {
5151
}
5252

5353
get_pod_ip(){
54-
kubectl get pods -n "$CLUSTER_NAMESPACE" "$CLUSTER_NAME"-0 -o wide | tail -n 1 | awk '{ print $6 }'
54+
kubectl get pods -n "$CLUSTER_NAMESPACE" "$CLUSTER_NAME"-0 -o json | jq -r .status.podIP
5555
}
5656

5757
patroni_curl(){

stackgres-k8s/e2e/spec/previous/1.14/spec/connectivity

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ EOF
7171
kubectl delete pod -n "$CLUSTER_NAMESPACE" "$CLUSTER_NAME-0" "$CLUSTER_NAME-1"
7272
wait_pods_running "$CLUSTER_NAMESPACE" 3
7373
wait_cluster "$CLUSTER_NAME" "$CLUSTER_NAMESPACE"
74+
switch_cluster_to_first "$CLUSTER_NAME" "$CLUSTER_NAMESPACE"
7475

7576
if wait_until check_password_is_required
7677
then
@@ -170,6 +171,7 @@ pgbouncer_users_check() {
170171
kubectl delete pod -n "$CLUSTER_NAMESPACE" -l "app=StackGresCluster,stackgres.io/cluster-name=$CLUSTER_NAME,stackgres.io/cluster=true"
171172
wait_pods_running "$CLUSTER_NAMESPACE" 3
172173
wait_cluster "$CLUSTER_NAME" "$CLUSTER_NAMESPACE"
174+
switch_cluster_to_first "$CLUSTER_NAME" "$CLUSTER_NAMESPACE"
173175

174176
RESPONSE_REPLICA="$(wait_until run_query -h "$CLUSTER_NAME" -i 1 -p 5432 -u user1:test || true)"
175177
if [ "$RESPONSE_REPLICA" = "1" ]

stackgres-k8s/e2e/spec/previous/1.14/spec/custom-annotations

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,6 @@ helm_custom_annotations(){
133133
--set cluster.distributedLogs.sgDistributedLogs="$DISTRIBUTEDLOGS_NAME" \
134134
--set distributedLogs.metadata.annotations.clusterPods.test-annotation="$POD_RANDOM_VALUE" \
135135
--set distributedLogs.metadata.annotations.services.service-annotation="$SERVICE_RANDOM_VALUE"
136-
kubectl create secret generic -n "$CLUSTER_NAMESPACE" "$DISTRIBUTEDLOGS_NAME" \
137-
--from-literal=superuser-password="$RANDOM"
138136

139137
wait_until check_sts_annotation "$POD_RANDOM_VALUE"
140138

0 commit comments

Comments
 (0)