Renamed Test Cleanup to Suite Cleanup; fix teardown to work properly in test suites
Change-Id: I4f8369b7f99d4d34a61f2b6ca58fa8a02feba01b
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
diff --git a/robot-systest/testsuite/hackfest_basic.robot b/robot-systest/testsuite/hackfest_basic.robot
index c3f9068..95d1827 100644
--- a/robot-systest/testsuite/hackfest_basic.robot
+++ b/robot-systest/testsuite/hackfest_basic.robot
@@ -25,7 +25,7 @@
Variables %{ROBOT_DEVOPS_FOLDER}/resources/hackfest_basic_ns_data.py
-Suite Teardown Run Keyword And Ignore Error Test Cleanup
+Suite Teardown Run Keyword And Ignore Error Suite Cleanup
*** Variables ***
@@ -91,13 +91,13 @@
*** Keywords ***
-Test Cleanup
+Suite Cleanup
[Documentation] Test Suit Cleanup: Deleting Descriptor, instance and vim
- Run Keyword If Test Failed Delete NS ${ns_name}
+ Run Keyword If Any Tests Failed Delete NS ${ns_name}
- Run Keyword If Test Failed Delete NSD ${nsd_name}
+ Run Keyword If Any Tests Failed Delete NSD ${nsd_name}
- Run Keyword If Test Failed Delete VNFD ${vnfd_name}
+ Run Keyword If Any Tests Failed Delete VNFD ${vnfd_name}