X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=robot-systest%2Ftestsuite%2Fbasic_06-vnf_with_charm.robot;h=024fb1b8bee73a727fc644af7fe8dd69ea0ba05d;hb=23ff8f980f66ef57fb4d254336a018e3a697a187;hp=b3ae63e07321674db1628c63f5a0c9c4bbed64cd;hpb=f4ebaa88025189ede4f073ab8a1f27c95efff867;p=osm%2Ftests.git diff --git a/robot-systest/testsuite/basic_06-vnf_with_charm.robot b/robot-systest/testsuite/basic_06-vnf_with_charm.robot index b3ae63e..024fb1b 100644 --- a/robot-systest/testsuite/basic_06-vnf_with_charm.robot +++ b/robot-systest/testsuite/basic_06-vnf_with_charm.robot @@ -20,8 +20,9 @@ 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 +Force Tags basic_06 cluster_ee_config regression azure Suite Teardown Run Keyword And Ignore Error Suite Cleanup @@ -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,15 +72,23 @@ 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 ${ip_addr_1} Get Vnf Management Ip Address ${ns_id} ${vnf_member_index_1} - log ${ip_addr_1} + Log ${ip_addr_1} Set Suite Variable ${vnf_1_ip_addr} ${ip_addr_1} ${ip_addr_2} Get Vnf Management Ip Address ${ns_id} ${vnf_member_index_2} - log ${ip_addr_2} + Log ${ip_addr_2} Set Suite Variable ${vnf_2_ip_addr} ${ip_addr_2}