blob: 1d870bb26e059585a6f64b9d2e512720a4f2904d [file] [log] [blame]
bravofa369b6e2021-11-09 18:52:30 -03001# 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 ***
garciadeblas4cb21662021-11-22 15:07:35 +010014Documentation [BASIC-23] Creation and deletion of SOL004 and SOL007 packages.
bravofa369b6e2021-11-09 18:52:30 -030015
16Library OperatingSystem
17Library String
18Library Collections
19Library Process
20Library SSHLibrary
21
22Resource %{ROBOT_DEVOPS_FOLDER}/lib/vnfd_lib.robot
23Resource %{ROBOT_DEVOPS_FOLDER}/lib/nsd_lib.robot
24
25Force Tags basic_23 cluster_main daily regression
26
27Suite Teardown Run Keyword And Ignore Error Suite Cleanup
28
29
30*** Variables ***
31# NS and VNF descriptor package folder and ids
garciadeblas4cb21662021-11-22 15:07:35 +010032${vnfd_pkg} sol004_hackfest_basic_vnf
33${vnfd_name} sol004_hackfest_basic-vnf
34${nsd_pkg} sol007_hackfest_basic_ns
35${nsd_name} sol007_hackfest_basic-ns
bravofa369b6e2021-11-09 18:52:30 -030036
37
38*** Test Cases ***
39Create VNF Package
40
41 Create VNFD '%{PACKAGES_FOLDER}/${vnfd_pkg}'
42
43
44Create NS Package
45
46 Create NSD '%{PACKAGES_FOLDER}/${nsd_pkg}'
47
48
49Cannot Delete VNF Package
50
51 Assert Failure Delete VNFD ${vnfd_name}
52
53
54Delete NS Package
55 [Tags] cleanup
56
57 Delete NSD ${nsd_name}
58
59
60Delete VNF Package
61 [Tags] cleanup
62
63 Delete VNFD ${vnfd_name}
64
65
66*** Keywords ***
67Suite Cleanup
68 [Documentation] Test Suit Cleanup: Deleting NS and VNF packages
69
70 Run Keyword If Any Tests Failed Delete NSD ${nsd_name}
71 Run Keyword If Any Tests Failed Delete VNFD ${vnfd_name}
72
73