Skip to content

Commit 2a8bc30

Browse files
committed
Add debug info to gateway-api test
1 parent dc22a36 commit 2a8bc30

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

Diff for: test/suites/optional/gateway-api.robot

+13-2
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ Delete Namespace
4444
[Documentation] Remove gateway api specific namespace.
4545
Remove Namespace ${NS_GATEWAY}
4646

47-
Create Gateway
47+
Create Gateway # robocop: disable=too-many-calls-in-keyword
4848
[Documentation] Create a gateway using given hostname and port. Waits for readiness
4949
[Arguments] ${hostname} ${port} ${namespace}
5050
${tmp}= Set Variable /tmp/gateway.yaml
@@ -55,7 +55,18 @@ Create Gateway
5555
Generate File From Template ${GATEWAY_MANIFEST_TMPL} ${tmp}
5656
Oc Apply -n ${namespace} -f ${tmp}
5757
Oc Wait -n ${namespace} gateway/test-gateway --for="condition=Accepted" --timeout=120s
58-
Oc Wait -n ${namespace} deploy test-gateway-openshift-gateway-api --for=condition=Available --timeout=120s
58+
TRY
59+
Oc Wait
60+
... -n ${namespace} deploy test-gateway-openshift-gateway-api
61+
... --for=condition=Available --timeout=120s
62+
EXCEPT
63+
Run With Kubeconfig oc get deploy -n ${namespace} allow_fail=${TRUE}
64+
Run With Kubeconfig oc get events -n ${namespace} --sort-by='.lastTimestamp' allow_fail=${TRUE}
65+
Run With Kubeconfig oc describe -n ${namespace} gateway/test-gateway allow_fail=${TRUE}
66+
Run With Kubeconfig oc logs -n openshift-gateway-api deploy/istiod-openshift-gateway-api
67+
... allow_fail=${TRUE}
68+
Fail Waiting for deployment timed out
69+
END
5970
Oc Wait -n ${namespace} gateway/test-gateway --for="condition=Programmed" --timeout=120s
6071

6172
Create HTTP Route

0 commit comments

Comments
 (0)