Skip to content
Open
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion test/suites/optional/gateway-api.robot
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Resource ../../resources/oc.resource
Suite Setup Setup Suite With Namespace
Suite Teardown Teardown Suite With Namespace

Test Tags optional gateway-api robot:skip
Test Tags optional gateway-api


*** Variables ***
Expand Down Expand Up @@ -78,6 +78,8 @@ Create HTTP Route
... Verify HTTPRoute Parent Accepted ${namespace}
Wait Until Keyword Succeeds 20x 6s
... Verify HTTPRoute References Resolved ${namespace}
Wait Until Keyword Succeeds 20x 6s
... Verify Gateway Port Listening ${GATEWAY_PORT}

Verify HTTPRoute Parent Accepted
[Documentation] Verify that the HTTPRoute is accepted by its parent gateway
Expand All @@ -97,6 +99,12 @@ Verify HTTPRoute References Resolved
Should Not Contain ${result} False HTTPRoute references not resolved
Should Not Contain ${result} Unknown HTTPRoute reference resolution status is unknown

Verify Gateway Port Listening
[Documentation] Verify that the gateway port is accepting connections on the host.
[Arguments] ${port}
${rc}= Run And Return Rc nc -z -w 5 ${USHIFT_HOST} ${port}
Should Be Equal As Integers ${rc} 0 Gateway port ${port} is not listening

Generate File From Template
[Documentation] Generate file from template
[Arguments] ${template_file} ${out_file}
Expand Down