Bug 873: Robot Automation Improvement
[osm/devops.git] / robot-systest / testsuite / cli / TS07__Hackfest_EPA_NS.robot
index 4d7f12d..5316598 100644 (file)
@@ -65,12 +65,18 @@ Create Hackfest EPA NS Descriptor
 Network Service Instance Test
     [Documentation]  Launch and terminate network services
     [Tags]    hackfest_epa
-    [Teardown]  Run Keyword And Ignore Error    Network Service Instance Cleanup
 
     :FOR    ${vim_name}    IN    @{vim}
     \    Launch Network Services and Return    ${vim_name}
 
 
+Delete NS Instance Test
+    [Tags]    hackfest_epa
+
+    :FOR    ${ns}  IN   @{ns_ids}
+    \   Delete NS   ${ns}
+
+
 Delete NS Descriptor Test
     [Tags]    hackfest_epa
 
@@ -87,17 +93,16 @@ Delete VNF Descriptor Test
 
 *** Keywords ***
 Test Cleanup
-    [Documentation]  Test Suit Cleanup: Forcefully delete NSD and VNFD
+    [Documentation]  Test Suit Cleanup: Deliting Descriptor, instance and vim
 
-    :FOR    ${nsd}  IN   @{nsd_ids}
-    \   Force Delete NSD      ${nsd_id}
-
-    :FOR    ${vnfd_id}  IN   @{vnfd_ids}
-    \   Force Delete VNFD     ${vnfd_id}
+    :FOR    ${ns}  IN   @{ns_ids}
+    \   Delete NS   ${ns}
 
+    :FOR    ${nsd}  IN   @{nsd_ids}
+    \   Delete NSD      ${nsd}
 
-Network Service Instance Cleanup
-    [Documentation]  Forcefully delete created network service instances and vim account
+    :FOR    ${vnfd}  IN   @{vnfd_ids}
+    \   Delete VNFD     ${vnfd}
 
-    :FOR    ${ns_id}  IN   @{ns_ids}
-    \   Force Delete NS   ${ns_id}
+#    :FOR    ${vim_id}  IN   @{vim}
+#    \   Delete Vim Account    ${vim_id}