Adding robot tests to validate Feature 10944 change naming of charms
[osm/tests.git] / robot-systest / testsuite / basic_06-vnf_with_charm.robot
index b3ae63e..a3bf07e 100644 (file)
@@ -20,6 +20,7 @@ Resource   %{ROBOT_DEVOPS_FOLDER}/lib/vnfd_lib.robot
 Resource   %{ROBOT_DEVOPS_FOLDER}/lib/nsd_lib.robot
 Resource   %{ROBOT_DEVOPS_FOLDER}/lib/ns_lib.robot
 Resource   %{ROBOT_DEVOPS_FOLDER}/lib/ssh_lib.robot
+Resource   %{ROBOT_DEVOPS_FOLDER}/lib/juju_lib.robot
 
 Force Tags   basic_06   cluster_ee_config   daily   regression
 
@@ -51,6 +52,10 @@ ${day_2_file_name_1}   /home/ubuntu/mytouch1
 ${day_2_file_name_2}   /home/ubuntu/mytouch2
 ${ns_timeout}   15min
 
+# VNF profile id, execution environment name to check VNF level charm naming
+${vnf_profile_id}   vnf1
+${ee_name}   simple-ee
+
 
 *** Test Cases ***
 Create Charm VNF Descriptor
@@ -67,6 +72,14 @@ Instantiate Charm Network Service
 
     ${id}=   Create Network Service   ${nsd_name}   %{VIM_TARGET}   ${ns_name}   ${ns_config}   ${publickey}   ${ns_timeout}
     Set Suite Variable   ${ns_id}   ${id}
+    Set Suite Variable   ${model_name}   ${id}
+
+
+Check VNF Charm Application Name
+
+    ${vnf_charm_app_name}=   Get Application Name VNF Level Charm   %{OSM_HOSTNAME}   ${username}   ${password}   %{OSM_RSA_FILE}   ${model_name}   ${vnf_profile_id}   ${ee_name}
+    ${length}=   Get Length   ${vnf_charm_app_name}
+    Should Be True   ${length} <50
 
 
 Get Management Ip Addresses