Skip to content
Snippets Groups Projects
Verified Commit 0e19cd6a authored by David Hoese's avatar David Hoese
Browse files

Add waits for ci test pods

parent 8e3cd18a
No related branches found
No related tags found
No related merge requests found
......@@ -27,6 +27,11 @@ get_pod_name() {
kubectl -n $ns get pods --selector=app.kubernetes.io/instance=${release_name} -o name
}
wait_for_pod() {
pod_name="$1"
kubectl -n $ns wait --for=condition=Ready ${pod_name} --timeout=60s
}
run_grb_checks() {
count=0
while true; do
......@@ -73,5 +78,7 @@ debug "GRB pod name: ${GRB_POD_NAME}"
GEO2GRID_POD_NAME=$(get_pod_name "${GEO2GRID_RELEASE_NAME}")
debug "Geo2Grid pod name: ${GEO2GRID_POD_NAME}"
wait_for_pod ${GRB_POD_NAME} || error "GRB pod was never ready"
run_grb_checks || error "GRB checks failed"
wait_for_pod ${GEO2GRID_POD_NAME} || error "Geo2Grid pod was never ready"
run_geo2grid_checks || error "Geo2Grid checks failed"
# persisting the secret only causes issues for failed tests
persistence:
enabled: false
rbacEnabled: false
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment