Skip to content

Commit

Permalink
Ensure namespace exists before waiting
Browse files Browse the repository at this point in the history
Signed-off-by: lugi0 <[email protected]>
  • Loading branch information
lugi0 committed Oct 2, 2024
1 parent 1f73cbb commit 69d626c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ods_ci/tests/Resources/OCP.resource
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,12 @@ Get Resource Attribute
Wait For Namespace To Be Active
[Documentation] Waits for a given namespace to become active
[Arguments] ${namespace} ${timeout}=30s
WHILE True limit=${timeout}
${out}= Run oc get namespace/${namespace}
IF '${out}' != 'Error from server (NotFound): namespaces "${namespace}" not found'
BREAK
END
END
${rc} ${value}= Run And Return Rc And Output
... oc wait --for jsonpath='{.status.phase}=Active' --timeout=${timeout} namespace/${namespace}
Log ${rc}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ Teardown Model Registry Test Setup
Remove Model Registry
Remove Deployment Files ${CERTS_DIRECTORY}
Remove Deployment Files ${MODELREGISTRY_BASE_FOLDER}/Python_Dependencies
Disable Model Registry If Needed
RHOSi Teardown

Get Cluster Domain And Token
Expand Down

0 comments on commit 69d626c

Please sign in to comment.