blob: 0cd13f81d099cb7f4289911ac82d1b535d29147f [file] [log] [blame]
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
*** Settings ***
Library OperatingSystem
Library String
Library Collections
Library Process
Library SSHLibrary
Resource %{ROBOT_DEVOPS_FOLDER}/lib/vnfd_lib.robot
Resource %{ROBOT_DEVOPS_FOLDER}/lib/nsd_lib.robot
Variables %{ROBOT_DEVOPS_FOLDER}/resources/basic_17-delete_vnf_package_data.py
Suite Teardown Run Keyword And Ignore Error Suite Cleanup
*** Test Cases ***
Create VNF Package
[Tags] hackfest_basic sanity regression
Create VNFD '%{PACKAGES_FOLDER}/${vnfd_pkg}'
Create NS Package
[Tags] hackfest_basic sanity regression
Create NSD '%{PACKAGES_FOLDER}/${nsd_pkg}'
Cannot Delete VNF Package
[Tags] hackfest_basic sanity regression cleanup
Assert Failure Delete VNFD ${vnfd_name}
Delete NS Package
[Tags] hackfest_basic sanity regression cleanup
Delete NSD ${nsd_name}
Delete VNF Package
[Tags] hackfest_basic sanity regression cleanup
Delete VNFD ${vnfd_name}
*** Keywords ***
Suite Cleanup
[Documentation] Test Suit Cleanup: Deleting NS and VNF packages
Run Keyword If Any Tests Failed Delete NSD ${nsd_name}
Run Keyword If Any Tests Failed Delete VNFD ${vnfd_name}