blob: 99dff9bd28f5430342c7a0eca9c7ec81a2799216 [file] [log] [blame]
Gary Wu9abb61c2018-09-27 10:38:50 -07001*** settings ***
2Library Collections
3Library RequestsLibrary
4Library OperatingSystem
5Library json
6
7*** Variables ***
8@{return_ok_list}= 200 201 202
9${queryswagger_url} /api/catalog/v1/swagger.json
10${queryVNFPackage_url} /api/catalog/v1/vnfpackages
11${queryNSPackages_url} /api/catalog/v1/nspackages
12
13*** Test Cases ***
14GetVNFPackages
15 ${headers} Create Dictionary Content-Type=application/json Accept=application/json
16 Create Session web_session http://${CATALOG_IP}:8806 headers=${headers}
17 ${resp}= Get Request web_session ${queryVNFPackage_url}
18 ${responese_code}= Convert To String ${resp.status_code}
19 List Should Contain Value ${return_ok_list} ${responese_code}