From a94b1d5512b72ac1d52e4c8ec9bc6be70d632858 Mon Sep 17 00:00:00 2001 From: Gary Wu Date: Tue, 6 Nov 2018 09:51:53 -0800 Subject: Add NULL check for vpkg model_invariant_id Change-Id: Ia4bacc56d2d30f1c0a391ff37ce20f3493e518ff Issue-ID: INT-586 Signed-off-by: Gary Wu --- robot/resources/so_interface.robot | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/robot/resources/so_interface.robot b/robot/resources/so_interface.robot index 0378caff..bc0aa3c0 100644 --- a/robot/resources/so_interface.robot +++ b/robot/resources/so_interface.robot @@ -41,7 +41,7 @@ Run SO Container Health Check Should Be Equal As Strings ${resp.status_code} 200 Run MSO Get ModelInvariantId - [Documentation] Runs an MSO Get ModelInvariantID for ClosedLoop Polieis + [Documentation] Runs an MSO Get ModelInvariantID for ClosedLoop Policies [Arguments] ${service_model_name} ${vf_module_label}=NULL ${param_dict}= Create Dictionary serviceModelName ${service_model_name} ${param}= Evaluate urllib.urlencode(${param_dict}) urllib @@ -55,8 +55,9 @@ Run MSO Get ModelInvariantId \ Log ${ELEMENT['vfModules']} \ ${model_invariant_id} Set Variable If ('${vf_module_label}' in '${ELEMENT['vfModules'][0]['vfModuleLabel']}') ${ELEMENT['modelInfo']['modelInvariantUuid']} NULL \ Exit For Loop If '${model_invariant_id}' != 'NULL' + Should Not Be Equal As Strings ${model_invariant_id} NULL [Return] ${model_invariant_id} - + Run MSO Get Request [Documentation] Runs an MSO get request [Arguments] ${data_path} ${accept}=application/json -- cgit 1.2.3-korg