summaryrefslogtreecommitdiffstats
path: root/robot/resources/so_interface.robot
diff options
context:
space:
mode:
authorGary Wu <gary.i.wu@huawei.com>2018-11-06 09:51:53 -0800
committerGary Wu <gary.i.wu@huawei.com>2018-11-06 09:51:53 -0800
commita94b1d5512b72ac1d52e4c8ec9bc6be70d632858 (patch)
tree0ae82e5b46ed260dbc903fe252be17a31b0a9551 /robot/resources/so_interface.robot
parentd5743d5ad466950ee2cb35943010a56a271fde93 (diff)
Add NULL check for vpkg model_invariant_id
Change-Id: Ia4bacc56d2d30f1c0a391ff37ce20f3493e518ff Issue-ID: INT-586 Signed-off-by: Gary Wu <gary.i.wu@huawei.com>
Diffstat (limited to 'robot/resources/so_interface.robot')
-rw-r--r--robot/resources/so_interface.robot5
1 files 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