File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed
Tests/400__ods_dashboard/420__model_serving Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -138,6 +138,10 @@ Get Pod Hardware Resources And Limits
138138 RETURN ${resources }
139139
140140Container Hardware Resources Should Match Expected
141+ [Documentation] This keyword checks that the requests/limits set in a specific container in a pod contain the
142+ ... requests and limits passed in with `exp_requests` and `exp_limits`. This means that the container might have
143+ ... additional requests/limits set which are not explicitly checked against. If you want to make sure you're
144+ ... checking all attributes you have to explicitly pass them in with `exp_requests/limits`.
141145 [Arguments] ${container_name } ${pod_label_selector } ${namespace }
142146 ... ${exp_requests } =${NONE } ${exp_limits } =${NONE }
143147 ${resources_dict } = Get Pod Hardware Resources And Limits label_selector=${pod_label_selector }
@@ -146,15 +150,15 @@ Container Hardware Resources Should Match Expected
146150 Dictionary Should Not Contain Key ${resources_dict } requests
147151 ELSE
148152 ${requests } = Set Variable ${resources_dict } [requests]
149- FOR ${index } ${resource } IN ENUMERATE @{requests .keys() }
153+ FOR ${index } ${resource } IN ENUMERATE @{exp_requests .keys() }
150154 Should Be Equal As Strings ${requests } [${resource } ] ${exp_requests } [${resource } ]
151155 END
152156 END
153157 IF ${exp_limits } == ${NONE }
154158 Dictionary Should Not Contain Key ${resources_dict } limits
155159 ELSE
156160 ${limits } = Set Variable ${resources_dict } [limits]
157- FOR ${index } ${resource } IN ENUMERATE @{limits .keys() }
161+ FOR ${index } ${resource } IN ENUMERATE @{exp_limits .keys() }
158162 Should Be Equal As Strings ${limits } [${resource } ] ${exp_limits } [${resource } ]
159163 END
160164 END
Original file line number Diff line number Diff line change @@ -146,8 +146,7 @@ Verify User Can Set Requests And Limits For A Model Using The UI # robocop: dis
146146Verify Model Can Be Served And Query On A GPU Node Using The UI # robocop: disable
147147 [Documentation] Basic tests for preparing, deploying and querying a LLM model on GPU node
148148 ... using Kserve and Caikit+TGIS runtime
149- ... ProductBug: https://issues.redhat.com/browse/RHOAIENG-146
150- [Tags] Sanity Tier1 ODS-2523 Resources-GPU ProductBug
149+ [Tags] Sanity Tier1 ODS-2523 Resources-GPU
151150 [Setup] Set Up Project namespace=singlemodel-gpu
152151 ${test_namespace } = Set Variable singlemodel-gpu
153152 ${model_name } = Set Variable flan-t5-small-caikit
@@ -163,7 +162,7 @@ Verify Model Can Be Served And Query On A GPU Node Using The UI # robocop: disa
163162 Model Pod Should Be Scheduled On A GPU Node label_selector=serving.kserve.io/inferenceservice=${model_name }
164163 ... namespace=${test_namespace }
165164 Query Model Multiple Times model_name=${model_name } n_times=10
166- ... namespace=${test_namespace }
165+ ... namespace=${test_namespace } protocol=http
167166 Query Model Multiple Times model_name=${model_name } n_times=5
168167 ... namespace=${test_namespace } endpoint=${CAIKIT_STREAM_ENDPOINT_HTTP }
169168 ... streamed_response=${TRUE } validate_response=${FALSE } protocol=http
You can’t perform that action at this time.
0 commit comments