aboutsummaryrefslogtreecommitdiffstats
path: root/test/csit/tests/vfc/nfvo-catalog
diff options
context:
space:
mode:
authorfengyuanxing <feng.yuanxing@zte.com.cn>2017-09-07 13:42:07 +0800
committerfengyuanxing <feng.yuanxing@zte.com.cn>2017-09-07 13:57:30 +0800
commit188d7bb3d67b2e2a0974ab462c079418757a7ea2 (patch)
tree26983974f33d2c5894bde191f548a68f689069bd /test/csit/tests/vfc/nfvo-catalog
parentd4fd566ea483b58eb0e138423b6f926b30fa5973 (diff)
Add query vnf packages
Change-Id: I7b6466e45e015b0b266b05f451b7f68e959d5152 Issue-Id: INT-179 Signed-off-by: fengyuanxing <feng.yuanxing@zte.com.cn>
Diffstat (limited to 'test/csit/tests/vfc/nfvo-catalog')
-rw-r--r--test/csit/tests/vfc/nfvo-catalog/test.robot15
1 files changed, 10 insertions, 5 deletions
diff --git a/test/csit/tests/vfc/nfvo-catalog/test.robot b/test/csit/tests/vfc/nfvo-catalog/test.robot
index 438f722e4..a23128c90 100644
--- a/test/csit/tests/vfc/nfvo-catalog/test.robot
+++ b/test/csit/tests/vfc/nfvo-catalog/test.robot
@@ -5,10 +5,15 @@ Library OperatingSystem
Library json
*** Variables ***
-@{return_ok_list}= 200 201 202
-${queryswagger_url} /api/catalog/v1/swagger.json
+@{return_ok_list}= 200 201 202
+${queryswagger_url} /api/catalog/v1/swagger.json
+${queryVNFPackage_url} /api/catalog/v1/vnfpackages
+${queryNSPackages_url} /api/catalog/v1/nspackages
*** Test Cases ***
-CatalogSwaggerTest
- [Documentation] query nslcm swagger info rest test
- Should Be Equal 2.0 2.0
+GetVNFPackages
+ ${headers} Create Dictionary Content-Type=application/json Accept=application/json
+ Create Session web_session http://${CATALOG_IP} headers=${headers}
+ ${resp}= Get Request web_session ${queryVNFPackage_url}
+ ${responese_code}= Convert To String ${resp.status_code}
+ List Should Contain Value ${return_ok_list} ${responese_code}