X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2Ftests.git;a=blobdiff_plain;f=robot-systest%2Ftestsuite%2Fslice_01-network_slicing.robot;h=5831e36484a21dba557f77006006d3a7a8bcf7b2;hp=09c79294a998476b170955ae1bb08a0e0971d7f7;hb=4cf45d797499817b5f639bd6245c3f84e762de14;hpb=499c86752f877c0007a0e4dde69c213d828047d0 diff --git a/robot-systest/testsuite/slice_01-network_slicing.robot b/robot-systest/testsuite/slice_01-network_slicing.robot index 09c7929..5831e36 100644 --- a/robot-systest/testsuite/slice_01-network_slicing.robot +++ b/robot-systest/testsuite/slice_01-network_slicing.robot @@ -13,6 +13,8 @@ # limitations under the License. *** Settings *** +Documentation [SLICE-01] Network Slicing. + Library OperatingSystem Library String Library Collections @@ -30,6 +32,8 @@ Resource %{ROBOT_DEVOPS_FOLDER}/lib/ssh_lib.robot Variables %{ROBOT_DEVOPS_FOLDER}/resources/slice_01-network_slicing_data.py +Force Tags slice_01 cluster_slices daily regression + Suite Teardown Run Keyword And Ignore Error Suite Cleanup @@ -48,8 +52,6 @@ ${nst_config} {netslice-vld: [ {name: slice_vld_mgmt, vim-network-name: %{VIM_ Create Slice VNF Descriptors [Documentation] Onboards all the VNFDs required for the test: vnfd1_pkg and vnfd2_pkg (in the variables file) - [Tags] basic_network_slicing SLICING-01 sanity regression - Create VNFD '%{PACKAGES_FOLDER}/${vnfd1_pkg}' Create VNFD '%{PACKAGES_FOLDER}/${vnfd2_pkg}' @@ -57,23 +59,17 @@ Create Slice VNF Descriptors Create Slice NS Descriptors [Documentation] Onboards all the NSDs required for the test: nsd1_pkg and nsd2_pkg (in the variables file) - [Tags] basic_network_slicing SLICING-01 sanity regression - Create NSD '%{PACKAGES_FOLDER}/${nsd1_pkg}' Create NSD '%{PACKAGES_FOLDER}/${nsd2_pkg}' Create Slice Template [Documentation] Onboards the Network Slice Template: nst (in the variables file) - [Tags] basic_network_slicing SLICING-01 sanity regression - Create NST '%{PACKAGES_FOLDER}/${nst}' Network Slice Instance Test [Documentation] Instantiates the NST recently onboarded and sets the instantiation id as a suite variable (nsi_id) - [Tags] basic_network_slicing SLICING-01 sanity regression - ${id}= Create Network Slice ${nst_name} %{VIM_TARGET} ${slice_name} ${nst_config} ${publickey} Set Suite Variable ${nsi_id} ${id} @@ -81,8 +77,6 @@ Network Slice Instance Test Get Middle Vnf Management Ip [Documentation] Obtains the management IP of the slice middle VNF (name in the reources file) and sets the ip as a suite variable (mgmt_vnf_ip) - [Tags] basic_network_slicing SLICING-01 sanity regression - ${middle_ns_id}= Run and Return RC and Output osm ns-list | grep ${middle_ns_name} | awk '{print $4}' 2>&1 ${vnf_ip} Get Vnf Management Ip Address ${middle_ns_id}[1] ${vnf_member_index} Run Keyword If '${vnf_ip}' == '${EMPTY}' Fatal Error Variable \$\{ vnf_ip\} Empty @@ -92,8 +86,6 @@ Get Middle Vnf Management Ip Get Slice Vnf Ip Addresses [Documentation] Obtains the list of IPs addresses in the slice and sets the list as a suite variable (slice_vnfs_ips) - [Tags] basic_network_slicing SLICING-01 sanity regression - # Get all the ns_id in the slice except the middle one to avoid self ping @{slice_ns_list} Get Slice Ns List Except One ${slice_name} ${middle_ns_name} log many @{slice_ns_list} @@ -113,7 +105,6 @@ Get Slice Vnf Ip Addresses Test Middle Ns Ping [Documentation] Pings the slice middle vnf (mgmt_vnf_ip) - [Tags] basic_network_slicing SLICING-01 sanity regression Sleep 60s Waiting for the network to be up # Ping to the middle VNF log ${mgmt_vnf_ip} @@ -123,7 +114,6 @@ Test Middle Ns Ping Test Middle Vnf SSH Access [Documentation] SSH access to the slice middle vnf (mgmt_vnf_ip) with the credentials provided in the variables file - [Tags] basic_network_slicing SLICING-01 sanity regression Sleep 30s Waiting ssh daemon to be up Test SSH Connection ${mgmt_vnf_ip} ${username} ${password} ${privatekey} @@ -132,31 +122,26 @@ Test Slice Connectivity [Documentation] SSH access to the slice middle vnf (mgmt_vnf_ip) with the credentials provided in the variables file ... and pings all the IP addresses in the list (slice_vnfs_ips) - [Tags] basic_network_slicing SLICING-01 sanity regression - Ping Many ${mgmt_vnf_ip} ${username} ${password} ${privatekey} @{slice_vnfs_ips} Delete Slice Instance [Documentation] Stops the slice instance (slice_name) - - [Tags] basic_network_slicing SLICING-01 sanity regression cleanup + [Tags] cleanup Delete NSI ${slice_name} Delete Slice Template [Documentation] Deletes the NST (nst_name) from OSM - - [Tags] basic_network_slicing SLICING-01 sanity regression cleanup + [Tags] cleanup Delete NST ${nst_name} Delete NS Descriptors [Documentation] Deletes all the NSDs created for the test: nsd1_name, nsd2_name - - [Tags] basic_network_slicing SLICING-01 sanity regression cleanup + [Tags] cleanup Delete NSD ${nsd1_name} Delete NSD ${nsd2_name} @@ -164,8 +149,7 @@ Delete NS Descriptors Delete VNF Descriptors [Documentation] Deletes all the VNFDs created for the test: vnfd1_name, vnfd2_name - - [Tags] basic_network_slicing SLICING-01 sanity regression cleanup + [Tags] cleanup Delete VNFD ${vnfd1_name} Delete VNFD ${vnfd2_name}