X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=robot-systest%2Ftestsuite%2Fbasic_12-ns_primitives.robot;h=e4113e7e32b6e405876fd50bfa2ada352c20e3ae;hb=4cf45d797499817b5f639bd6245c3f84e762de14;hp=7dcc7190258f2770558c1a5bfe43cd234d78d482;hpb=a352a93af7e73cd73831ba7601df7d916abc8bfc;p=osm%2Ftests.git diff --git a/robot-systest/testsuite/basic_12-ns_primitives.robot b/robot-systest/testsuite/basic_12-ns_primitives.robot index 7dcc719..e4113e7 100644 --- a/robot-systest/testsuite/basic_12-ns_primitives.robot +++ b/robot-systest/testsuite/basic_12-ns_primitives.robot @@ -12,6 +12,8 @@ # limitations under the License. *** Settings *** +Documentation [BASIC-12] NS Primitives + Library OperatingSystem Library String Library Collections @@ -24,7 +26,9 @@ Resource %{ROBOT_DEVOPS_FOLDER}/lib/packages_lib.robot Variables %{ROBOT_DEVOPS_FOLDER}/resources/basic_12-ns_primitives_data.py -Suite Teardown Run Keyword And Ignore Error Test Cleanup +Force Tags basic_12 cluster_ee_config daily regression + +Suite Teardown Run Keyword And Ignore Error Suite Cleanup *** Variables *** @@ -36,38 +40,21 @@ Change Juju Password [Documentation] NS package needs to be updated with the Juju credentials for your OSM installation - [Tags] nsprimitives charm sanity regression - - ${nsd_yaml}= Get File %{PACKAGES_FOLDER}${nsd_pkg}/${nsd_file} + ${nsd_yaml}= Get File %{PACKAGES_FOLDER}/${nsd_pkg}/${nsd_file} ${changed_nsd_yaml}= Replace String ${nsd_yaml} ${old_juju_password} %{JUJU_PASSWORD} - Create File %{PACKAGES_FOLDER}${nsd_pkg}/${nsd_file} ${changed_nsd_yaml} - -Create NS Package - - [Tags] nsprimitives charm sanity regression - - ${pkg}= Package Build '%{PACKAGES_FOLDER}${nsd_pkg}' - Log ${pkg} - Set Suite Variable ${ns_pkg} ${pkg} - + Create File %{PACKAGES_FOLDER}/${nsd_pkg}/${nsd_file} ${changed_nsd_yaml} Upload Vnfds - [Tags] nsprimitives charm sanity regression - - Create VNFD '%{PACKAGES_FOLDER}${vnfd_pkg1}' - Create VNFD '%{PACKAGES_FOLDER}${vnfd_pkg2}' + Create VNFD '%{PACKAGES_FOLDER}/${vnfd_pkg1}' + Create VNFD '%{PACKAGES_FOLDER}/${vnfd_pkg2}' Upload Nsd - [Tags] nsprimitives charm sanity regression - - Create NSD '${ns_pkg}' + Create NSD %{PACKAGES_FOLDER}/${nsd_pkg}/ Instantiate NS - [Tags] nsprimitives charm sanity regression - ${id}= Create Network Service ${nsd_name} %{VIM_TARGET} ${ns_name} ${ns_config} ${publickey} ns_launch_max_wait_time=40min Set Suite Variable ${ns_id} ${id} @@ -75,29 +62,29 @@ Instantiate NS Delete NS - [Tags] nsprimitives charm sanity regression cleanup + [Tags] cleanup Delete NS ${ns_name} Delete NS Descriptor - [Tags] nsprimitives charm sanity regression cleanup + [Tags] cleanup Delete NSD ${nsd_name} Delete VNF Descriptors - [Tags] nsprimitives charm sanity regression cleanup + [Tags] cleanup Delete VNFD ${vnfd_name1} Delete VNFD ${vnfd_name2} *** Keywords *** -Test Cleanup +Suite Cleanup [Documentation] Test Suit Cleanup: Deleting Descriptor and instance - Run Keyword If Test Failed Delete NS ${ns_name} - Run Keyword If Test Failed Delete NSD ${nsd_name} - Run Keyword If Test Failed Delete VNFD ${vnfd_name1} - Run Keyword If Test Failed Delete VNFD ${vnfd_name2} + Run Keyword If Any Tests Failed Delete NS ${ns_name} + Run Keyword If Any Tests Failed Delete NSD ${nsd_name} + Run Keyword If Any Tests Failed Delete VNFD ${vnfd_name1} + Run Keyword If Any Tests Failed Delete VNFD ${vnfd_name2}