Improved cleanup of slice_01 and slice_02 tests
[osm/tests.git] / robot-systest / testsuite / slice_02-shared_network_slicing.robot
index bd350a2..79010ad 100644 (file)
@@ -150,7 +150,7 @@ Test First Slice Connectivity
     Ping Many   ${mgmt_vnf_ip}  ${username}  ${password}  ${privatekey}   @{slice1_vnfs_ips}
 
 
-Stop Slice One Instance
+Delete Slice One Instance
     [Documentation]   Stops the slice instance (slice_name)
 
     [Tags]   shared_network_slicing   SLICING-02   sanity   regression   cleanup
@@ -188,7 +188,7 @@ Test Second Slice Connectivity
     Ping Many   ${mgmt_vnf_ip}  ${username}  ${password}  ${privatekey}   @{slice2_vnfs_ips}
 
 
-Stop Slice Two Instance
+Delete Slice Two Instance
     [Documentation]   Stops the slice instance (slice2_name)
 
     [Tags]   shared_network_slicing   SLICING-02   sanity   regression   cleanup
@@ -234,6 +234,9 @@ Delete VNF Descriptors
 Suite Cleanup
     [Documentation]  Test Suit Cleanup: Deleting Descriptors, instance and templates
 
+    Run Keyword If Any Tests Failed  Delete NSI   ${slice_name}
+    Run Keyword If Any Tests Failed  Delete NSI   ${slice2_name}
+
     Run Keyword If Any Tests Failed  Delete NST   ${nst_name}
     Run Keyword If Any Tests Failed  Delete NST   ${nst2_name}