aboutsummaryrefslogtreecommitdiffstats
path: root/robot/resources/test_templates/vnf_orchestration_with_cds_test_template.robot
diff options
context:
space:
mode:
authorAndreas Geissler <andreas-geissler@telekom.de>2024-11-05 18:22:30 +0100
committerAndreas Geissler <andreas-geissler@telekom.de>2024-11-08 11:42:55 +0100
commit69fd079507e6a4500c2117b7dad31fa81b7e1299 (patch)
treea55826ede16537d8087c122ec38b00028aa18479 /robot/resources/test_templates/vnf_orchestration_with_cds_test_template.robot
parentb3cf372e63b153b19ec685782300ec2bd07875ac (diff)
Update deprecated :FOR loopsHEADmaster
Update SDNC APIs Issue-ID: OOM-3301 Signed-off-by: Andreas Geissler <andreas-geissler@telekom.de> Change-Id: I515e503abef90f3aaa3733d7518d6e738173100e
Diffstat (limited to 'robot/resources/test_templates/vnf_orchestration_with_cds_test_template.robot')
-rw-r--r--robot/resources/test_templates/vnf_orchestration_with_cds_test_template.robot36
1 files changed, 19 insertions, 17 deletions
diff --git a/robot/resources/test_templates/vnf_orchestration_with_cds_test_template.robot b/robot/resources/test_templates/vnf_orchestration_with_cds_test_template.robot
index 1ab5852c..61abb433 100644
--- a/robot/resources/test_templates/vnf_orchestration_with_cds_test_template.robot
+++ b/robot/resources/test_templates/vnf_orchestration_with_cds_test_template.robot
@@ -70,16 +70,17 @@ Orchestrate VNF With CDS
${vnfs}= Get From Dictionary ${jsondata['topology_template']} node_templates
${keys}= Get Dictionary Keys ${vnfs}
Templating.Create Environment cds ${GLOBAL_TEMPLATE_FOLDER}
- :FOR ${key} IN @{keys}
- \ ${vnf}= Get From Dictionary ${vnfs} ${key}
- \ Get VNF Info ${key} ${vnf} ${dict}
- \ ${vf_modules}= Get From Dictionary ${jsondata['topology_template']} groups
- \ ${value}= Evaluate "${key}".replace("-","").replace(" ","")
- \ ${value}= Convert To Lowercase ${value}
- \ ${vfmodules}= Get VFModule Info ${jsondata} ${value} ${dict}
- \ Set To Dictionary ${dict} vf_modules=${vfmodules}
- \ ${vnf_payload}= Templating.Apply Template cds ${vnf_template_name} ${dict}
- \ ${data}= Catenate [${vnf_payload}]
+ FOR ${key} IN @{keys}
+ ${vnf}= Get From Dictionary ${vnfs} ${key}
+ Get VNF Info ${key} ${vnf} ${dict}
+ ${vf_modules}= Get From Dictionary ${jsondata['topology_template']} groups
+ ${value}= Evaluate "${key}".replace("-","").replace(" ","")
+ ${value}= Convert To Lowercase ${value}
+ ${vfmodules}= Get VFModule Info ${jsondata} ${value} ${dict}
+ Set To Dictionary ${dict} vf_modules=${vfmodules}
+ ${vnf_payload}= Templating.Apply Template cds ${vnf_template_name} ${dict}
+ ${data}= Catenate [${vnf_payload}]
+ END
Set To Dictionary ${dict} vnfs=${data}
${request}= Templating.Apply Template cds ${so_request_template} ${dict}
@@ -117,13 +118,14 @@ Get VFModule Info
${data}= Catenate
${delim}= Catenate
Templating.Create Environment cds ${GLOBAL_TEMPLATE_FOLDER}
- :FOR ${key} IN @{keys}
- \ ${module}= Get From Dictionary ${vfModules} ${key}
- \ Log ${vnf} ${key}
- \ Run keyword if "${vnf}" in "${key}" set vfmodule param ${key} ${module} ${dict}
- \ ${vfmodule_payload}= Templating.Apply Template cds ${vfmodule_template_name} ${dict}
- \ ${data}= Catenate ${data} ${delim} ${vfmodule_payload}
- \ ${delim}= Catenate ,
+ FOR ${key} IN @{keys}
+ ${module}= Get From Dictionary ${vfModules} ${key}
+ Log ${vnf} ${key}
+ Run keyword if "${vnf}" in "${key}" set vfmodule param ${key} ${module} ${dict}
+ ${vfmodule_payload}= Templating.Apply Template cds ${vfmodule_template_name} ${dict}
+ ${data}= Catenate ${data} ${delim} ${vfmodule_payload}
+ ${delim}= Catenate ,
+ END
Log ${data}
[Return] ${data}