summaryrefslogtreecommitdiffstats
path: root/robot/resources/vid
diff options
context:
space:
mode:
authorBin Yang <bin.yang@windriver.com>2018-05-31 05:35:33 +0000
committerBin Yang <bin.yang@windriver.com>2018-05-31 05:35:33 +0000
commit326219a4092a35d84b26d1a74e8ec9f8f846db62 (patch)
tree8c0fc447c6f0bef5287bebf602fb5f6ec6be6920 /robot/resources/vid
parentf940ee98c0478e40a0d281ffaa5074b85f4ca6ce (diff)
Fix robot preload VNF issue
Change-Id: Ie0241358f48f74e1033521e77302f8c898ac8e42 Issue-ID: INT-516 Signed-off-by: Bin Yang <bin.yang@windriver.com>
Diffstat (limited to 'robot/resources/vid')
-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}