diff options
author | 2024-11-05 18:22:30 +0100 | |
---|---|---|
committer | 2024-11-08 11:42:55 +0100 | |
commit | 69fd079507e6a4500c2117b7dad31fa81b7e1299 (patch) | |
tree | a55826ede16537d8087c122ec38b00028aa18479 /robot/resources/vid/vid_interface.robot | |
parent | b3cf372e63b153b19ec685782300ec2bd07875ac (diff) |
Update deprecated :FOR loops
Update SDNC APIs
Issue-ID: OOM-3301
Signed-off-by: Andreas Geissler <andreas-geissler@telekom.de>
Change-Id: I515e503abef90f3aaa3733d7518d6e738173100e
Diffstat (limited to 'robot/resources/vid/vid_interface.robot')
-rw-r--r-- | robot/resources/vid/vid_interface.robot | 23 |
1 files changed, 13 insertions, 10 deletions
diff --git a/robot/resources/vid/vid_interface.robot b/robot/resources/vid/vid_interface.robot index 58ba0e56..00558fdc 100644 --- a/robot/resources/vid/vid_interface.robot +++ b/robot/resources/vid/vid_interface.robot @@ -115,10 +115,11 @@ Get Model UUID from VID ${resp}= Get Text xpath=//body/pre ${json}= To Json ${resp} ${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} + FOR ${dict} IN @{services} + ${uuid}= Get From DIctionary ${dict} uuid + ${inv}= Get From DIctionary ${dict} invariantUUID + Return From Keyword If "${invariantUUID}" == "${inv}" ${uuid} + END [Return] "" @@ -133,8 +134,9 @@ Get Module Names from VID ${modules}= Create List ${vnfs}= Get From Dictionary ${json} vnfs ${keys}= Get Dictionary Keys ${vnfs} - :FOR ${key} IN @{keys} - \ Add VFModule ${vnfs['${key}']} ${modules} + FOR ${key} IN @{keys} + Add VFModule ${vnfs['${key}']} ${modules} + END [Return] ${modules} Add VFModule @@ -142,7 +144,8 @@ Add VFModule [Arguments] ${vnf} ${modules} ${vfModules}= Get From Dictionary ${vnf} vfModules ${keys}= Get Dictionary Keys ${vfModules} - :FOR ${key} IN @{keys} - \ ${module}= Get From Dictionary ${vfModules} ${key} - \ ${dict}= Create Dictionary name=${module['name']} - \ Append to List ${modules} ${dict} + FOR ${key} IN @{keys} + ${module}= Get From Dictionary ${vfModules} ${key} + ${dict}= Create Dictionary name=${module['name']} + Append to List ${modules} ${dict} + END
\ No newline at end of file |