2 # Licensed under the Apache License, Version 2.0 (the "License");
3 # you may not use this file except in compliance with the License.
4 # You may obtain a copy of the License at
6 # http://www.apache.org/licenses/LICENSE-2.0
8 # Unless required by applicable law or agreed to in writing, software
9 # distributed under the License is distributed on an "AS IS" BASIS,
10 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11 # See the License for the specific language governing permissions and
12 # limitations under the License.
16 Documentation [BASIC-23] Creation and deletion of SOL004 and SOL007 packages.
18 Library OperatingSystem
24 Resource ../lib/vnfd_lib.resource
25 Resource ../lib/nsd_lib.resource
27 Test Tags basic_23 cluster_main daily regression azure
29 Suite Teardown Run Keyword And Ignore Error Suite Cleanup
33 # NS and VNF descriptor package folder and ids
34 ${VNFD_PKG} sol004_hackfest_basic_vnf
35 ${VNFD_NAME} sol004_hackfest_basic-vnf
36 ${NSD_PKG} sol007_hackfest_basic_ns
37 ${NSD_NAME} sol007_hackfest_basic-ns
42 [Documentation] Upload VNF package for the testsuite.
43 Create VNFD '%{PACKAGES_FOLDER}/${VNFD_PKG}'
46 [Documentation] Upload NS package for the testsuite.
47 Create NSD '%{PACKAGES_FOLDER}/${NSD_PKG}'
49 Cannot Delete VNF Package
50 [Documentation] Assert that the VNF package cannot be deleted before the NS package is deleted.
51 Assert Failure Delete VNFD ${VNFD_NAME}
54 [Documentation] Delete NS package.
56 Delete NSD ${NSD_NAME}
59 [Documentation] Delete VNF package.
61 Delete VNFD ${VNFD_NAME}
66 [Documentation] Test Suit Cleanup: Deleting NS and VNF packages
67 Run Keyword If Any Tests Failed Delete NSD ${NSD_NAME}
68 Run Keyword If Any Tests Failed Delete VNFD ${VNFD_NAME}