1 # -*- coding: utf-8 -*-
4 # Copyright 2019 Tech Mahindra Limited
8 # Licensed under the Apache License, Version 2.0 (the "License"); you may
9 # not use this file except in compliance with the License. You may obtain
10 # a copy of the License at
12 # http://www.apache.org/licenses/LICENSE-2.0
14 # Unless required by applicable law or agreed to in writing, software
15 # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
16 # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
17 # License for the specific language governing permissions and limitations
22 # 1. Feature 7829: Mrityunjay Yadav, Jayant Madavi : MY00514913@techmahindra.com : 06-aug-2019
27 Documentation Test Suite to test basic cirros VNF and NS using osm-client
28 Library OperatingSystem
31 Resource ../../lib/cli/vnfd_lib.robot
32 Resource ../../lib/cli/nsd_lib.robot
33 Resource ../../lib/cli/ns_lib.robot
34 Resource ../../lib/cli/vim_account_lib.robot
35 Library ../../lib/custom_lib.py
36 Variables ../../resource/cli/test_vnf_data.py
38 Suite Teardown Run Keyword And Ignore Error Test Cleanup
48 Create VNF Descriptor Test
51 Build VNF Descriptor ${vnfdPckgPath}
52 ${vnfd_id}= Create VNFD '${CURDIR}${/}../../..${vnfdPckgPath}${vnfdPckg}'
53 Append To List ${vnfd_ids} ${vnfd_id}
56 Create NS Descriptor Test
59 Build NS Descriptor ${nsdPckgPath}
60 ${nsd_id}= Create NSD '${CURDIR}${/}../../..${nsdPckgPath}${nsdPckg}'
61 Append To List ${nsd_ids} ${nsd_id}
64 Network Service Instance Test
65 [Documentation] Launch and terminate network services
68 :FOR ${vim_name} IN @{vim}
69 \ Launch Network Services and Return ${vim_name}
72 Delete NS Instance Test
75 :FOR ${ns} IN @{ns_ids}
79 Delete NS Descriptor Test
82 :FOR ${nsd} IN @{nsd_ids}
86 Delete VNF Descriptor Test
89 :FOR ${vnfd} IN @{vnfd_ids}
95 [Documentation] Test Suit Cleanup: Deliting Descriptor, instance and vim
97 :FOR ${ns} IN @{ns_ids}
100 :FOR ${nsd} IN @{nsd_ids}
103 :FOR ${vnfd} IN @{vnfd_ids}
104 \ Delete VNFD ${vnfd}
106 # :FOR ${vim_id} IN @{vim}
107 # \ Delete Vim Account ${vim_id}