Add production setup to LXD
[osm/devops.git] / robot-systest / testsuite / cli / TS01__Test_VNF.robot
index 08a4e0e..84e1f92 100644 (file)
@@ -42,8 +42,6 @@ Suite Teardown     Run Keyword And Ignore Error    Test Cleanup
 @{vnfd_ids}
 @{nsd_ids}
 @{ns_ids}
-@{vim}
-#${vim_name}     robot_test
 
 
 *** Test Cases ***
@@ -66,14 +64,18 @@ Create NS Descriptor Test
 Network Service Instance Test
     [Documentation]  Launch and terminate network services
     [Tags]    sanity
-    [Setup]  VIM Setup To Launch Network Services
-    [Teardown]  Run Keyword And Ignore Error    Network Service Instance Cleanup
 
-    Should Not Be Empty    ${vim}    VIM details not provided
     :FOR    ${vim_name}    IN    @{vim}
     \    Launch Network Services and Return    ${vim_name}
 
 
+Delete NS Instance Test
+    [Tags]    sanity
+
+    :FOR    ${ns}  IN   @{ns_ids}
+    \   Delete NS   ${ns}
+
+
 Delete NS Descriptor Test
     [Tags]    sanity     smoke
 
@@ -90,20 +92,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    ${ns}  IN   @{ns_ids}
+    \   Delete NS   ${ns}
 
     :FOR    ${nsd}  IN   @{nsd_ids}
-    \   Force Delete NSD      ${nsd}
+    \   Delete NSD      ${nsd}
 
     :FOR    ${vnfd}  IN   @{vnfd_ids}
-    \   Force Delete VNFD     ${vnfd}
-
-
-Network Service Instance Cleanup
-    [Documentation]  Forcefully delete created network service instances and vim account
-
-    :FOR    ${ns}  IN   @{ns_ids}
-    \   Force Delete NS   ${ns}
+    \   Delete VNFD     ${vnfd}
 
-    :FOR    ${vim_id}  IN   @{vim}
-    \   Force Delete Vim Account    ${vim_id}
+#    :FOR    ${vim_id}  IN   @{vim}
+#    \   Delete Vim Account    ${vim_id}