| garciadeblas | 7a9e031 | 2023-12-11 22:24:46 +0100 | [diff] [blame] | 1 | *** Comments *** |
| garciadeblas | 499c867 | 2021-03-25 11:51:08 +0100 | [diff] [blame] | 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 |
| 5 | # |
| 6 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 7 | # |
| 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. |
| 13 | |
| garciadeblas | 7a9e031 | 2023-12-11 22:24:46 +0100 | [diff] [blame] | 14 | |
| garciadeblas | 499c867 | 2021-03-25 11:51:08 +0100 | [diff] [blame] | 15 | *** Settings *** |
| garciadeblas | f4ebaa8 | 2022-06-23 13:33:26 +0200 | [diff] [blame] | 16 | Documentation [BASIC-17] Delete VNF Package Before NS Package. |
| garciadeblas | 4cf45d7 | 2021-04-08 13:52:22 +0200 | [diff] [blame] | 17 | |
| garciadeblas | 499c867 | 2021-03-25 11:51:08 +0100 | [diff] [blame] | 18 | Library OperatingSystem |
| 19 | Library String |
| 20 | Library Collections |
| 21 | Library Process |
| 22 | Library SSHLibrary |
| 23 | |
| garciadeblas | 7a9e031 | 2023-12-11 22:24:46 +0100 | [diff] [blame] | 24 | Resource ../lib/vnfd_lib.resource |
| 25 | Resource ../lib/nsd_lib.resource |
| garciadeblas | 499c867 | 2021-03-25 11:51:08 +0100 | [diff] [blame] | 26 | |
| garciadeblas | 7a9e031 | 2023-12-11 22:24:46 +0100 | [diff] [blame] | 27 | Test Tags basic_17 cluster_main daily regression azure |
| garciadeblas | 4cf45d7 | 2021-04-08 13:52:22 +0200 | [diff] [blame] | 28 | |
| garciadeblas | 499c867 | 2021-03-25 11:51:08 +0100 | [diff] [blame] | 29 | Suite Teardown Run Keyword And Ignore Error Suite Cleanup |
| 30 | |
| 31 | |
| almagia | b4697d3 | 2021-05-25 08:56:17 +0200 | [diff] [blame] | 32 | *** Variables *** |
| 33 | # NS and VNF descriptor package folder and ids |
| garciadeblas | 7a9e031 | 2023-12-11 22:24:46 +0100 | [diff] [blame] | 34 | ${VNFD_PKG} hackfest_basic_vnf |
| 35 | ${VNFD_NAME} hackfest_basic-vnf |
| 36 | ${NSD_PKG} hackfest_basic_ns |
| 37 | ${NSD_NAME} hackfest_basic-ns |
| almagia | b4697d3 | 2021-05-25 08:56:17 +0200 | [diff] [blame] | 38 | |
| 39 | |
| garciadeblas | 499c867 | 2021-03-25 11:51:08 +0100 | [diff] [blame] | 40 | *** Test Cases *** |
| 41 | Create VNF Package |
| garciadeblas | 7a9e031 | 2023-12-11 22:24:46 +0100 | [diff] [blame] | 42 | [Documentation] Upload VNF package for the testsuite. |
| 43 | Create VNFD '%{PACKAGES_FOLDER}/${VNFD_PKG}' |
| garciadeblas | 499c867 | 2021-03-25 11:51:08 +0100 | [diff] [blame] | 44 | |
| 45 | Create NS Package |
| garciadeblas | 7a9e031 | 2023-12-11 22:24:46 +0100 | [diff] [blame] | 46 | [Documentation] Upload NS package for the testsuite. |
| 47 | Create NSD '%{PACKAGES_FOLDER}/${NSD_PKG}' |
| garciadeblas | 499c867 | 2021-03-25 11:51:08 +0100 | [diff] [blame] | 48 | |
| 49 | Cannot Delete VNF Package |
| garciadeblas | 7a9e031 | 2023-12-11 22:24:46 +0100 | [diff] [blame] | 50 | [Documentation] Assert that the VNF package cannot be deleted without deleting the corresponding NS package using it. |
| 51 | Assert Failure Delete VNFD ${VNFD_NAME} |
| garciadeblas | 499c867 | 2021-03-25 11:51:08 +0100 | [diff] [blame] | 52 | |
| 53 | Delete NS Package |
| garciadeblas | 7a9e031 | 2023-12-11 22:24:46 +0100 | [diff] [blame] | 54 | [Documentation] Delete NS package from OSM. |
| garciadeblas | 4cf45d7 | 2021-04-08 13:52:22 +0200 | [diff] [blame] | 55 | [Tags] cleanup |
| garciadeblas | 7a9e031 | 2023-12-11 22:24:46 +0100 | [diff] [blame] | 56 | Delete NSD ${NSD_NAME} |
| garciadeblas | 499c867 | 2021-03-25 11:51:08 +0100 | [diff] [blame] | 57 | |
| 58 | Delete VNF Package |
| garciadeblas | 7a9e031 | 2023-12-11 22:24:46 +0100 | [diff] [blame] | 59 | [Documentation] Delete VNF package from OSM. |
| garciadeblas | 4cf45d7 | 2021-04-08 13:52:22 +0200 | [diff] [blame] | 60 | [Tags] cleanup |
| garciadeblas | 7a9e031 | 2023-12-11 22:24:46 +0100 | [diff] [blame] | 61 | Delete VNFD ${VNFD_NAME} |
| garciadeblas | 499c867 | 2021-03-25 11:51:08 +0100 | [diff] [blame] | 62 | |
| 63 | |
| 64 | *** Keywords *** |
| 65 | Suite Cleanup |
| garciadeblas | f4ebaa8 | 2022-06-23 13:33:26 +0200 | [diff] [blame] | 66 | [Documentation] Test Suit Cleanup: Deleting NS and VNF packages |
| garciadeblas | 7a9e031 | 2023-12-11 22:24:46 +0100 | [diff] [blame] | 67 | Run Keyword If Any Tests Failed Delete NSD ${NSD_NAME} |
| 68 | Run Keyword If Any Tests Failed Delete VNFD ${VNFD_NAME} |