New testsuite basic_17: delete vnf package when not possible
[osm/tests.git] / robot-systest / testsuite / basic_17-delete_vnf_package.robot
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 ***
14 Library   OperatingSystem
15 Library   String
16 Library   Collections
17 Library   Process
18 Library   SSHLibrary
19
20 Resource   %{ROBOT_DEVOPS_FOLDER}/lib/vnfd_lib.robot
21 Resource   %{ROBOT_DEVOPS_FOLDER}/lib/nsd_lib.robot
22
23 Variables   %{ROBOT_DEVOPS_FOLDER}/resources/basic_17-delete_vnf_package_data.py
24
25 Suite Teardown   Run Keyword And Ignore Error   Suite Cleanup
26
27
28 *** Test Cases ***
29 Create VNF Package
30     [Tags]   hackfest_basic   sanity   regression
31
32     Create VNFD   '%{PACKAGES_FOLDER}/${vnfd_pkg}'
33
34
35 Create NS Package
36     [Tags]   hackfest_basic   sanity   regression
37
38     Create NSD   '%{PACKAGES_FOLDER}/${nsd_pkg}'
39
40
41 Cannot Delete VNF Package
42     [Tags]   hackfest_basic   sanity   regression   cleanup
43
44     Assert Failure Delete VNFD   ${vnfd_name}
45
46
47 Delete NS Package
48     [Tags]   hackfest_basic   sanity   regression   cleanup
49
50     Delete NSD   ${nsd_name}
51
52
53 Delete VNF Package
54     [Tags]   hackfest_basic   sanity   regression   cleanup
55
56     Delete VNFD   ${vnfd_name}
57
58
59 *** Keywords ***
60 Suite Cleanup
61     [Documentation]  Test Suit Cleanup: Deleting NS and VNF packages
62
63     Run Keyword If Any Tests Failed  Delete NSD   ${nsd_name}
64     Run Keyword If Any Tests Failed  Delete VNFD   ${vnfd_name}
65
66