summaryrefslogtreecommitdiffstats
path: root/robot/resources/vid/vid_interface.robot
diff options
context:
space:
mode:
authorHelen Chen <helen.chen@huawei.com>2018-08-21 23:16:38 +0000
committerGerrit Code Review <gerrit@onap.org>2018-08-21 23:16:38 +0000
commitc2db61263b74bff702e860f10100ecd4ea4ed51c (patch)
tree935bbc7a4f9d0af8d681a8f1c3b1828aef73b30e /robot/resources/vid/vid_interface.robot
parentffc246bafcd737733744d01a3dd6358ba82f6dea (diff)
parent326219a4092a35d84b26d1a74e8ec9f8f846db62 (diff)
Merge "Fix robot preload VNF issue"
Diffstat (limited to 'robot/resources/vid/vid_interface.robot')
-rw-r--r--robot/resources/vid/vid_interface.robot5
1 files changed, 3 insertions, 2 deletions
diff --git a/robot/resources/vid/vid_interface.robot b/robot/resources/vid/vid_interface.robot
index ec017577..35522793 100644
--- a/robot/resources/vid/vid_interface.robot
+++ b/robot/resources/vid/vid_interface.robot
@@ -100,7 +100,7 @@ Parse Instance Id
${json}= To Json ${request_list[1]}
${request_id}= Catenate ${json['requestReferences']['instanceId']}
[Return] ${request_id}
-
+
Get Model UUID from VID
[Documentation] Must use UI since rest call get redirect to portal and get DNS error
... Search all services and match on the invariantUUID
@@ -108,7 +108,8 @@ Get Model UUID from VID
Go To ${VID_ENDPOINT}${VID_ENV}/rest/models/services
${resp}= Get Text xpath=//body/pre
${json}= To Json ${resp}
- :for ${dict} in @{json}
+ ${services}= Get From Dictionary ${json} services
+ :for ${dict} in @{services}
\ ${uuid}= Get From DIctionary ${dict} uuid
\ ${inv}= Get From DIctionary ${dict} invariantUUID
\ Return From Keyword If "${invariantUUID}" == "${inv}" ${uuid}