Skip to content

Commit 027de7b

Browse files
committed
e2e: harden cluster-api-info
1 parent ef7afb3 commit 027de7b

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

stackgres-k8s/e2e/spec/cluster-api-info

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ e2e_test() {
2424
}
2525

2626
get_api_cluster_info() {
27+
wait_until check_api_cluster_info
28+
}
29+
30+
check_api_cluster_info() {
2731
local CLUSTER_INFO_PRIMARYDNS CLUSTER_INFO_REPLICADNS \
2832
CLUSTER_INFO_USERNAME CLUSTER_INFO_SECRETNAME CLUSTER_INFO_PWKEY
2933
CLUSTER_INFO_PRIMARYDNS="$(run_curl -r "stackgres/namespaces/$CLUSTER_NAMESPACE/sgclusters/$CLUSTER_NAME" | jq '.info.primaryDns' -r)"

0 commit comments

Comments
 (0)