2 # Copyright 2019 Tech Mahindra Limited
6 # Licensed under the Apache License, Version 2.0 (the "License"); you may
7 # not use this file except in compliance with the License. You may obtain
8 # a copy of the License at
10 # http://www.apache.org/licenses/LICENSE-2.0
12 # Unless required by applicable law or agreed to in writing, software
13 # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
14 # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
15 # License for the specific language governing permissions and limitations
21 Documentation Test suite to test osmclient python library
22 Library OperatingSystem
24 Suite Setup Setup OSM Client
31 ${authurl} https://169.254.169.245/
38 Get VIM Account List Test
39 [Tags] comprehensive osmclient_lib
40 [Documentation] Using python's osmclient library to get vim account list
42 ${vim_list}= osmclient.get_vim_list
43 log to console ${vim_list}
47 Get VNF Descriptor List Test
48 [Tags] comprehensive osmclient_lib
49 [Documentation] Using python's osmclient library to get vnfd list
51 ${vnfd_list}= osmclient.get_vnfd_list
52 log to console ${vnfd_list}
56 Get NS Descriptor List Test
57 [Tags] comprehensive osmclient_lib
58 [Documentation] Using python's osmclient library to get nsd list
60 ${nsd_list}= osmclient.get_nsd_list
61 log to console ${nsd_list}
65 Create Vim Account Test
66 [Tags] comprehensive osmclient_lib
67 [Documentation] Using python's osmclient library to create vim account
68 [Template] osmclient.create_vim_account
69 ${name} ${type} ${user} ${password} ${authurl} ${tenant} ${desc}
72 Delete Vim Account Test
73 [Tags] comprehensive osmclient_lib
74 [Documentation] Using python's osmclient library to delete vim account
75 osmclient.delete_vim_account ${name}
80 evaluate sys.path.append('${CURDIR}${/}../../lib/client_lib') modules=sys
81 ${host}= Get Environment Variable OSM_HOSTNAME 127.0.0.1
82 Import Library ClientLib host=${host} WITH NAME osmclient