summaryrefslogtreecommitdiffstats
path: root/robot/resources/test_templates/closedloop_test_template.robot
diff options
context:
space:
mode:
Diffstat (limited to 'robot/resources/test_templates/closedloop_test_template.robot')
-rw-r--r--robot/resources/test_templates/closedloop_test_template.robot34
1 files changed, 17 insertions, 17 deletions
diff --git a/robot/resources/test_templates/closedloop_test_template.robot b/robot/resources/test_templates/closedloop_test_template.robot
index e43233e0..15686a11 100644
--- a/robot/resources/test_templates/closedloop_test_template.robot
+++ b/robot/resources/test_templates/closedloop_test_template.robot
@@ -5,7 +5,7 @@ Resource ../stack_validation/policy_check_vfw.robot
Library String
Library Process
-Library ONAPLibrary.Templating
+Library ONAPLibrary.Templating WITH NAME Templating
Library ONAPLibrary.Utilities
*** Variables ***
@@ -73,8 +73,8 @@ Get Configs VFW Policy
[Documentation] Get Config Policy for VFW
${getconfigpolicy}= Catenate .*${CONFIG_POLICY_NAME}*
${configpolicy_name}= Create Dictionary config_policy_name=${getconfigpolicy}
- Create Environment cl ${GLOBAL_TEMPLATE_FOLDER}
- ${output}= Apply Template cl ${GECONFIG_VFW_TEMPLATE} ${configpolicy_name}
+ Templating.Create Environment cl ${GLOBAL_TEMPLATE_FOLDER}
+ ${output}= Templating.Apply Template cl ${GECONFIG_VFW_TEMPLATE} ${configpolicy_name}
${get_resp} = Run Policy Get Configs Request ${RESOURCE_PATH_GET_CONFIG} ${output}
Should Be Equal As Strings ${get_resp.status_code} 200
${config}= Catenate ${get_resp.json()[0]["config"]}
@@ -94,8 +94,8 @@ Get Configs VDNS Policy
[Documentation] Get Config Policy for VDNS
${getconfigpolicy}= Catenate .*MicroServicevDNS*
${configpolicy_name}= Create Dictionary config_policy_name=${getconfigpolicy}
- Create Environment cl ${GLOBAL_TEMPLATE_FOLDER}
- ${output}= Apply Template cl ${GECONFIG_VFW_TEMPLATE} ${configpolicy_name}
+ Templating.Create Environment cl ${GLOBAL_TEMPLATE_FOLDER}
+ ${output}= Templating.Apply Template cl ${GECONFIG_VFW_TEMPLATE} ${configpolicy_name}
${get_resp} = Run Policy Get Configs Request ${RESOURCE_PATH_GET_CONFIG} ${output}
Should Be Equal As Strings ${get_resp.status_code} 200
${config}= Catenate ${get_resp.json()[0]["config"]}
@@ -119,8 +119,8 @@ Create Config Policy
${policyname1}= Catenate com.${randompolicyname}
${CONFIG_POLICY_NAME}= Set Test Variable ${policyname1}
${configpolicy}= Create Dictionary policy_name=${CONFIG_POLICY_NAME}
- Create Environment cl ${GLOBAL_TEMPLATE_FOLDER}
- ${output}= Apply Template cl ${CREATE_CONFIG_TEMPLATE} ${configpolicy}
+ Templating.Create Environment cl ${GLOBAL_TEMPLATE_FOLDER}
+ ${output}= Templating.Apply Template cl ${CREATE_CONFIG_TEMPLATE} ${configpolicy}
${put_resp} = Run Policy Put Request ${RESOURCE_PATH_CREATE} ${output}
Should Be Equal As Strings ${put_resp.status_code} 200
@@ -137,8 +137,8 @@ Create Ops Policy
${policyname1}= Catenate com.${randompolicyname}
${OPS_POLICY_NAME}= Set Test Variable ${policyname1}
${dict}= Create Dictionary policy_name=${OPS_POLICY_NAME}
- Create Environment cl ${GLOBAL_TEMPLATE_FOLDER}
- ${output}= Apply Template cl ${CREATE_OPS_TEMPLATE} ${dict}
+ Templating.Create Environment cl ${GLOBAL_TEMPLATE_FOLDER}
+ ${output}= Templating.Apply Template cl ${CREATE_OPS_TEMPLATE} ${dict}
${put_resp} = Run Policy Put Request ${RESOURCE_PATH_CREATE} ${output}
Log ${put_resp}
Should Be Equal As Strings ${put_resp.status_code} 200
@@ -147,8 +147,8 @@ Push Ops Policy
[Documentation] Push Ops Policy
[Arguments] ${policyname} ${policytype}
${dict}= Create Dictionary policy_name=${policyname} policy_type=${policytype}
- Create Environment cl ${GLOBAL_TEMPLATE_FOLDER}
- ${output}= Apply Template cl ${PUSH_POLICY_TEMPLATE} ${dict}
+ Templating.Create Environment cl ${GLOBAL_TEMPLATE_FOLDER}
+ ${output}= Templating.Apply Template cl ${PUSH_POLICY_TEMPLATE} ${dict}
${put_resp} = Run Policy Put Request ${RESOURCE_PATH_CREATE_PUSH} ${output}
Should Be Equal As Strings ${put_resp.status_code} 200
@@ -156,8 +156,8 @@ Push Config Policy
[Documentation] Push Config Policy
[Arguments] ${policyname} ${policytype}
${dict}= Create Dictionary policy_name=${policyname} policy_type=${policytype}
- Create Environment cl ${GLOBAL_TEMPLATE_FOLDER}
- ${output}= Apply Template cl ${PUSH_POLICY_TEMPLATE} ${dict}
+ Templating.Create Environment cl ${GLOBAL_TEMPLATE_FOLDER}
+ ${output}= Templating.Apply Template cl ${PUSH_POLICY_TEMPLATE} ${dict}
${put_resp} = Run Policy Put Request ${RESOURCE_PATH_CREATE_PUSH} ${output}
Should Be Equal As Strings ${put_resp.status_code} 200
@@ -167,8 +167,8 @@ Delete Config Policy
[Arguments] ${policy_name}
${policyname3}= Catenate com.Config_BRMS_Param_${policyname}.1.xml
${dict}= Create Dictionary policy_name=${policyname3}
- Create Environment cl ${GLOBAL_TEMPLATE_FOLDER}
- ${output}= Apply Template cl ${DEL_POLICY_TEMPLATE} ${dict}
+ Templating.Create Environment cl ${GLOBAL_TEMPLATE_FOLDER}
+ ${output}= Templating.Apply Template cl ${DEL_POLICY_TEMPLATE} ${dict}
${put_resp} = Run Policy Delete Request ${RESOURCE_PATH_CREATE_DELETE} ${output}
Should Be Equal As Strings ${put_resp.status_code} 200
@@ -177,8 +177,8 @@ Delete Ops Policy
[Arguments] ${policy_name}
${policyname3}= Catenate com.Config_MS_com.vFirewall.1.xml
${dict}= Create Dictionary policy_name=${policyname3}
- Create Environment cl ${GLOBAL_TEMPLATE_FOLDER}
- ${output}= Apply Template cl ${DEL_POLICY_TEMPLATE} ${dict}
+ Templating.Create Environment cl ${GLOBAL_TEMPLATE_FOLDER}
+ ${output}= Templating.Apply Template cl ${DEL_POLICY_TEMPLATE} ${dict}
${put_resp} = Run Policy Delete Request ${RESOURCE_PATH_CREATE_DELETE} ${output}
Should Be Equal As Strings ${put_resp.status_code} 200