| garciadeblas | 499c867 | 2021-03-25 11:51:08 +0100 | [diff] [blame] | 1 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 2 | # you may not use this file except in compliance with the License. |
| 3 | # You may obtain a copy of the License at |
| 4 | # |
| 5 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 6 | # |
| 7 | # Unless required by applicable law or agreed to in writing, software |
| 8 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 9 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 10 | # See the License for the specific language governing permissions and |
| 11 | # limitations under the License. |
| 12 | |
| 13 | *** Settings *** |
| garciadeblas | f4ebaa8 | 2022-06-23 13:33:26 +0200 | [diff] [blame] | 14 | Documentation [BASIC-17] Delete VNF Package Before NS Package. |
| garciadeblas | 4cf45d7 | 2021-04-08 13:52:22 +0200 | [diff] [blame] | 15 | |
| garciadeblas | 499c867 | 2021-03-25 11:51:08 +0100 | [diff] [blame] | 16 | Library OperatingSystem |
| 17 | Library String |
| 18 | Library Collections |
| 19 | Library Process |
| 20 | Library SSHLibrary |
| 21 | |
| 22 | Resource %{ROBOT_DEVOPS_FOLDER}/lib/vnfd_lib.robot |
| 23 | Resource %{ROBOT_DEVOPS_FOLDER}/lib/nsd_lib.robot |
| 24 | |
| garciadeblas | 4cf45d7 | 2021-04-08 13:52:22 +0200 | [diff] [blame] | 25 | Force Tags basic_17 cluster_main daily regression |
| 26 | |
| garciadeblas | 499c867 | 2021-03-25 11:51:08 +0100 | [diff] [blame] | 27 | Suite Teardown Run Keyword And Ignore Error Suite Cleanup |
| 28 | |
| 29 | |
| almagia | b4697d3 | 2021-05-25 08:56:17 +0200 | [diff] [blame] | 30 | *** Variables *** |
| 31 | # NS and VNF descriptor package folder and ids |
| 32 | ${vnfd_pkg} hackfest_basic_vnf |
| 33 | ${vnfd_name} hackfest_basic-vnf |
| 34 | ${nsd_pkg} hackfest_basic_ns |
| 35 | ${nsd_name} hackfest_basic-ns |
| 36 | |
| 37 | |
| garciadeblas | 499c867 | 2021-03-25 11:51:08 +0100 | [diff] [blame] | 38 | *** Test Cases *** |
| 39 | Create VNF Package |
| garciadeblas | 499c867 | 2021-03-25 11:51:08 +0100 | [diff] [blame] | 40 | |
| 41 | Create VNFD '%{PACKAGES_FOLDER}/${vnfd_pkg}' |
| 42 | |
| 43 | |
| 44 | Create NS Package |
| garciadeblas | 499c867 | 2021-03-25 11:51:08 +0100 | [diff] [blame] | 45 | |
| 46 | Create NSD '%{PACKAGES_FOLDER}/${nsd_pkg}' |
| 47 | |
| 48 | |
| 49 | Cannot Delete VNF Package |
| garciadeblas | 499c867 | 2021-03-25 11:51:08 +0100 | [diff] [blame] | 50 | |
| 51 | Assert Failure Delete VNFD ${vnfd_name} |
| 52 | |
| 53 | |
| 54 | Delete NS Package |
| garciadeblas | 4cf45d7 | 2021-04-08 13:52:22 +0200 | [diff] [blame] | 55 | [Tags] cleanup |
| garciadeblas | 499c867 | 2021-03-25 11:51:08 +0100 | [diff] [blame] | 56 | |
| 57 | Delete NSD ${nsd_name} |
| 58 | |
| 59 | |
| 60 | Delete VNF Package |
| garciadeblas | 4cf45d7 | 2021-04-08 13:52:22 +0200 | [diff] [blame] | 61 | [Tags] cleanup |
| garciadeblas | 499c867 | 2021-03-25 11:51:08 +0100 | [diff] [blame] | 62 | |
| 63 | Delete VNFD ${vnfd_name} |
| 64 | |
| 65 | |
| 66 | *** Keywords *** |
| 67 | Suite Cleanup |
| garciadeblas | f4ebaa8 | 2022-06-23 13:33:26 +0200 | [diff] [blame] | 68 | [Documentation] Test Suit Cleanup: Deleting NS and VNF packages |
| garciadeblas | 499c867 | 2021-03-25 11:51:08 +0100 | [diff] [blame] | 69 | |
| garciadeblas | f4ebaa8 | 2022-06-23 13:33:26 +0200 | [diff] [blame] | 70 | Run Keyword If Any Tests Failed Delete NSD ${nsd_name} |
| 71 | Run Keyword If Any Tests Failed Delete VNFD ${vnfd_name} |
| garciadeblas | 499c867 | 2021-03-25 11:51:08 +0100 | [diff] [blame] | 72 | |
| 73 | |