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
20 # 1. Jayant Madavi, Mrityunjay Yadav : MY00514913@techmahindra.com : 18-Dec-2019
24 Documentation Test Suite to test OSMClient Package Createtion and Validation Tool
25 Library OperatingSystem
28 Resource ../../lib/cli/osm_package_tools_lib.robot
30 Suite Setup Prerequisite For Test
31 Suite Teardown Test Cleanup
35 ${success_return_code} 0
36 ${base_dir} ${EXECDIR}
37 ${pkg_dir} ${CURDIR}${/}../../resource/cli/packages
43 Test OSM NS Package Create
44 [Tags] comprehensive feature8047
45 Create OSM NS Package ${ns_pkg}
48 Test OSM VNF Package Create
49 [Tags] comprehensive feature8047
50 Create OSM VNF Package ${vnf_pkg}
53 Test OSM NS Package Validate
54 [Tags] comprehensive feature8047
55 Validate OSM NS Package ${ns_pkg}
58 Test OSM VNF Package Validate
59 [Tags] comprehensive feature8047
60 Validate OSM VNF Package ${vnf_pkg}
63 Test OSM VNF Package Build
64 [Tags] comprehensive feature8047
65 Build OSM VNF Package ${vnf_pkg}
68 Test OSM NS Package Build
69 [Tags] comprehensive feature8047
70 Build OSM NS Package ${ns_pkg}
75 Create Directory ${pkg_dir}
76 ${rc} ${stdout}= Run and Return RC and Output cd ${pkg_dir}
77 Should Be Equal As Integers ${rc} ${success_return_code}
81 ${rc} ${stdout}= Run and Return RC and Output cd ${base_dir}
82 Should Be Equal As Integers ${rc} ${success_return_code}
84 Remove Directory ${pkg_dir} recursive=${TRUE}