From 326219a4092a35d84b26d1a74e8ec9f8f846db62 Mon Sep 17 00:00:00 2001 From: Bin Yang Date: Thu, 31 May 2018 05:35:33 +0000 Subject: Fix robot preload VNF issue Change-Id: Ie0241358f48f74e1033521e77302f8c898ac8e42 Issue-ID: INT-516 Signed-off-by: Bin Yang --- robot/resources/vid/vid_interface.robot | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'robot/resources/vid') 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} -- cgit 1.2.3-korg