X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;ds=inline;f=robot-systest%2Ftestsuite%2Fbasic_23-sol004_sol007_packages.robot;fp=robot-systest%2Ftestsuite%2Fbasic_23-sol004_sol007_packages.robot;h=1d870bb26e059585a6f64b9d2e512720a4f2904d;hb=7d21be86cbdc2404d06549ce99fec61f61dad143;hp=0000000000000000000000000000000000000000;hpb=f44a88668f359b6b338e8e9eb4eeaa6cac69acf6;p=osm%2Ftests.git diff --git a/robot-systest/testsuite/basic_23-sol004_sol007_packages.robot b/robot-systest/testsuite/basic_23-sol004_sol007_packages.robot new file mode 100644 index 0000000..1d870bb --- /dev/null +++ b/robot-systest/testsuite/basic_23-sol004_sol007_packages.robot @@ -0,0 +1,73 @@ +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +*** Settings *** +Documentation [BASIC-23] Creation and deletion of SOL004 and SOL007 packages. + +Library OperatingSystem +Library String +Library Collections +Library Process +Library SSHLibrary + +Resource %{ROBOT_DEVOPS_FOLDER}/lib/vnfd_lib.robot +Resource %{ROBOT_DEVOPS_FOLDER}/lib/nsd_lib.robot + +Force Tags basic_23 cluster_main daily regression + +Suite Teardown Run Keyword And Ignore Error Suite Cleanup + + +*** Variables *** +# NS and VNF descriptor package folder and ids +${vnfd_pkg} sol004_hackfest_basic_vnf +${vnfd_name} sol004_hackfest_basic-vnf +${nsd_pkg} sol007_hackfest_basic_ns +${nsd_name} sol007_hackfest_basic-ns + + +*** Test Cases *** +Create VNF Package + + Create VNFD '%{PACKAGES_FOLDER}/${vnfd_pkg}' + + +Create NS Package + + Create NSD '%{PACKAGES_FOLDER}/${nsd_pkg}' + + +Cannot Delete VNF Package + + Assert Failure Delete VNFD ${vnfd_name} + + +Delete NS Package + [Tags] cleanup + + Delete NSD ${nsd_name} + + +Delete VNF Package + [Tags] cleanup + + Delete VNFD ${vnfd_name} + + +*** Keywords *** +Suite Cleanup + [Documentation] Test Suit Cleanup: Deleting NS and VNF packages + + Run Keyword If Any Tests Failed Delete NSD ${nsd_name} + Run Keyword If Any Tests Failed Delete VNFD ${vnfd_name} + +