Skip to content

Commit

Permalink
fix teardown for kserve tests
Browse files Browse the repository at this point in the history
Signed-off-by: bdattoma <[email protected]>
  • Loading branch information
bdattoma committed Dec 5, 2023
1 parent d17ff21 commit bc78dae
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -590,8 +590,14 @@ Clean Up Test Project
ELSE
Log To Console InferenceService Delete option not provided by user
END
Remove Namespace From ServiceMeshMemberRoll namespace=${test_ns}
${rc} ${member_list}= Run And Return Rc And Output
... oc get smmr/default -n ${SERVICEMESH_CR_NS} -o json | jq '.spec.members'
IF "${member_list}" == "null"
Log message=ServiceMeshMemberRoll already cleaned up. Skipping manual deletion
ELSE
Remove Namespace From ServiceMeshMemberRoll namespace=${test_ns}
... servicemesh_ns=${SERVICEMESH_CR_NS}
END
${rc} ${out}= Run And Return Rc And Output oc delete project ${test_ns}
Should Be Equal As Integers ${rc} ${0}
${rc} ${out}= Run And Return Rc And Output oc wait --for=delete namespace ${test_ns} --timeout=300s
Expand Down

0 comments on commit bc78dae

Please sign in to comment.