Update tags in all testsuites
[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 Documentation     [BASIC-17] Delete VNF Package Before NS Package.
15
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
25 Variables   %{ROBOT_DEVOPS_FOLDER}/resources/basic_17-delete_vnf_package_data.py
26
27 Force Tags   basic_17   cluster_main   daily   regression
28
29 Suite Teardown   Run Keyword And Ignore Error   Suite Cleanup
30
31
32 *** Test Cases ***
33 Create VNF Package
34
35     Create VNFD   '%{PACKAGES_FOLDER}/${vnfd_pkg}'
36
37
38 Create NS Package
39
40     Create NSD   '%{PACKAGES_FOLDER}/${nsd_pkg}'
41
42
43 Cannot Delete VNF Package
44
45     Assert Failure Delete VNFD   ${vnfd_name}
46
47
48 Delete NS Package
49     [Tags]   cleanup
50
51     Delete NSD   ${nsd_name}
52
53
54 Delete VNF Package
55     [Tags]   cleanup
56
57     Delete VNFD   ${vnfd_name}
58
59
60 *** Keywords ***
61 Suite Cleanup
62     [Documentation]  Test Suit Cleanup: Deleting NS and VNF packages
63
64     Run Keyword If Any Tests Failed  Delete NSD   ${nsd_name}
65     Run Keyword If Any Tests Failed  Delete VNFD   ${vnfd_name}
66
67