Skip to content

Commit 2a4e01f

Browse files
committed
Print out debugging information about frontend service and edge route to
see why the test is failing.
1 parent 3ba69a3 commit 2a4e01f

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

test/end-to-end/core.sh

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -466,8 +466,14 @@ router_ip=$(oc get pod "${router_pod}" --template='{{.status.podIP}}')
466466
CONTAINER_ACCESSIBLE_API_HOST="${CONTAINER_ACCESSIBLE_API_HOST:-${router_ip}}"
467467
# Ensure frontend has endpoints - looks like the tests are failing because
468468
# there is no backend available.
469-
os::cmd::try_until_text "oc get endpoints frontend --output-version=v1 --template='{{ if .subsets }}{{ len .subsets }}{{ else }}0{{ end }}'" '[1-9]+' $((5*TIME_MIN))
470-
os::cmd::try_until_text "oc get endpoints frontend --output-version=v1 --template='{{ (index (index .status.ingress 0).conditions 0).type }}'" 'Admitted' $((5*TIME_MIN))
469+
echo "[DEBUG] Endpoints for frontend service: "
470+
oc get endpoints ${frontend_pod} -o yaml || :
471+
echo "[DEBUG] route-edge info: "
472+
oc get route route-edge -o yaml || :
473+
echo "[DEBUG] route pod logs: "
474+
oc logs ${router_pod}
475+
#echo "[DEBUG] Wait for route to be admitted: "
476+
#os::cmd::try_until_text "oc get route route-edge --output-version=v1 --template='{{ (index (index .status.ingress 0).conditions 0).type }}'" 'Admitted' $((1*TIME_MIN))
471477
validate_response "-s -k --resolve www.example.com:443:${CONTAINER_ACCESSIBLE_API_HOST} https://www.example.com" "Hello from OpenShift" 0.2 50
472478
# Validate that oc create route edge will create an edge terminated route.
473479
os::cmd::expect_success 'oc delete route/route-edge -n test'

0 commit comments

Comments
 (0)