summaryrefslogtreecommitdiffstats
path: root/ResmanagementService/service/src/integration-test/resources/testcase/portroa
diff options
context:
space:
mode:
authorluxin <luxin7@huawei.com>2017-07-03 10:19:19 +0800
committerluxin <luxin7@huawei.com>2017-07-03 10:19:19 +0800
commit056dcab91efc64b5f9fc39825f9242e7fa0b9d05 (patch)
treed1af18cb6bfa6d3d61f0f77ff958d5a3ce7d6d06 /ResmanagementService/service/src/integration-test/resources/testcase/portroa
parentd0ad118ba98d809ddc8eece49cf1fe1dfc83fc74 (diff)
Upload nfvo resmanagement code
Change-Id: Ibe023d4b09e1105b84eb43153b4d4037cae691db Signed-off-by: luxin <luxin7@huawei.com>
Diffstat (limited to 'ResmanagementService/service/src/integration-test/resources/testcase/portroa')
-rw-r--r--ResmanagementService/service/src/integration-test/resources/testcase/portroa/createportsfail1.json24
-rw-r--r--ResmanagementService/service/src/integration-test/resources/testcase/portroa/createportssuccess1.json24
-rw-r--r--ResmanagementService/service/src/integration-test/resources/testcase/portroa/deleteportsfail1.json15
-rw-r--r--ResmanagementService/service/src/integration-test/resources/testcase/portroa/deleteportssuccess1.json15
-rw-r--r--ResmanagementService/service/src/integration-test/resources/testcase/portroa/modportsfail1.json24
-rw-r--r--ResmanagementService/service/src/integration-test/resources/testcase/portroa/modportssuccess1.json24
-rw-r--r--ResmanagementService/service/src/integration-test/resources/testcase/portroa/queryportsbyidfail1.json15
-rw-r--r--ResmanagementService/service/src/integration-test/resources/testcase/portroa/queryportsbyidsuccess1.json23
8 files changed, 164 insertions, 0 deletions
diff --git a/ResmanagementService/service/src/integration-test/resources/testcase/portroa/createportsfail1.json b/ResmanagementService/service/src/integration-test/resources/testcase/portroa/createportsfail1.json
new file mode 100644
index 0000000..7270bf4
--- /dev/null
+++ b/ResmanagementService/service/src/integration-test/resources/testcase/portroa/createportsfail1.json
@@ -0,0 +1,24 @@
+{
+ "request": {
+ "uri": "/openoapi/resmgr/v1/ports",
+ "method": "post",
+ "headers": {
+ "Content-Type": "application/json;charset=UTF-8"
+ },
+ "json": {
+ "id": "12345678",
+ "name": "portName",
+ "networkId": "1111",
+ "status": "ACTIVE",
+ "tenantId": "123456",
+ "vimId": "11",
+ "vimName": "22"
+ }
+ },
+ "response": {
+ "status": 200,
+ "json": {
+ "msg": "org.openo.nfvo.resmanage.service.port.add.id.check"
+ }
+ }
+} \ No newline at end of file
diff --git a/ResmanagementService/service/src/integration-test/resources/testcase/portroa/createportssuccess1.json b/ResmanagementService/service/src/integration-test/resources/testcase/portroa/createportssuccess1.json
new file mode 100644
index 0000000..b31d469
--- /dev/null
+++ b/ResmanagementService/service/src/integration-test/resources/testcase/portroa/createportssuccess1.json
@@ -0,0 +1,24 @@
+{
+ "request": {
+ "uri": "/openoapi/resmgr/v1/ports",
+ "method": "post",
+ "headers": {
+ "Content-Type": "application/json;charset=UTF-8"
+ },
+ "json": {
+ "id": "12345678",
+ "name": "portName",
+ "networkId": "1111",
+ "status": "ACTIVE",
+ "tenantId": "123456",
+ "vimId": "11",
+ "vimName": "22"
+ }
+ },
+ "response": {
+ "status": 200,
+ "json": {
+ "msg": "org.openo.nfvo.resmanage.common.add.success"
+ }
+ }
+} \ No newline at end of file
diff --git a/ResmanagementService/service/src/integration-test/resources/testcase/portroa/deleteportsfail1.json b/ResmanagementService/service/src/integration-test/resources/testcase/portroa/deleteportsfail1.json
new file mode 100644
index 0000000..c4e3659
--- /dev/null
+++ b/ResmanagementService/service/src/integration-test/resources/testcase/portroa/deleteportsfail1.json
@@ -0,0 +1,15 @@
+{
+ "request": {
+ "uri": "/openoapi/resmgr/v1/ports?id=aaaa",
+ "method": "delete",
+ "headers": {
+ "Content-Type": "application/json;charset=UTF-8"
+ }
+ },
+ "response": {
+ "status": 200,
+ "json": {
+ "msg": "org.openo.nfvo.resmanage.common.del.error"
+ }
+ }
+} \ No newline at end of file
diff --git a/ResmanagementService/service/src/integration-test/resources/testcase/portroa/deleteportssuccess1.json b/ResmanagementService/service/src/integration-test/resources/testcase/portroa/deleteportssuccess1.json
new file mode 100644
index 0000000..843593d
--- /dev/null
+++ b/ResmanagementService/service/src/integration-test/resources/testcase/portroa/deleteportssuccess1.json
@@ -0,0 +1,15 @@
+{
+ "request": {
+ "uri": "/openoapi/resmgr/v1/ports?id=12345678",
+ "method": "delete",
+ "headers": {
+ "Content-Type": "application/json;charset=UTF-8"
+ }
+ },
+ "response": {
+ "status": 200,
+ "json": {
+ "msg": "org.openo.nfvo.resmanage.common.del.success"
+ }
+ }
+} \ No newline at end of file
diff --git a/ResmanagementService/service/src/integration-test/resources/testcase/portroa/modportsfail1.json b/ResmanagementService/service/src/integration-test/resources/testcase/portroa/modportsfail1.json
new file mode 100644
index 0000000..6c3f521
--- /dev/null
+++ b/ResmanagementService/service/src/integration-test/resources/testcase/portroa/modportsfail1.json
@@ -0,0 +1,24 @@
+{
+ "request": {
+ "uri": "/openoapi/resmgr/v1/ports",
+ "method": "put",
+ "headers": {
+ "Content-Type": "application/json;charset=UTF-8"
+ },
+ "json": {
+ "id": "aaaa",
+ "name": "portName",
+ "networkId": "1111",
+ "status": "ACTIVE",
+ "tenantId": "123456",
+ "vimId": "11",
+ "vimName": "22"
+ }
+ },
+ "response": {
+ "status": 200,
+ "json": {
+ "msg": "org.openo.nfvo.resmanage.common.update.error"
+ }
+ }
+} \ No newline at end of file
diff --git a/ResmanagementService/service/src/integration-test/resources/testcase/portroa/modportssuccess1.json b/ResmanagementService/service/src/integration-test/resources/testcase/portroa/modportssuccess1.json
new file mode 100644
index 0000000..583764c
--- /dev/null
+++ b/ResmanagementService/service/src/integration-test/resources/testcase/portroa/modportssuccess1.json
@@ -0,0 +1,24 @@
+{
+ "request": {
+ "uri": "/openoapi/resmgr/v1/ports",
+ "method": "put",
+ "headers": {
+ "Content-Type": "application/json;charset=UTF-8"
+ },
+ "json": {
+ "id": "12345678",
+ "name": "newName",
+ "networkId": "1111",
+ "status": "ACTIVE",
+ "tenantId": "123456",
+ "vimId": "11",
+ "vimName": "22"
+ }
+ },
+ "response": {
+ "status": 200,
+ "json": {
+ "msg": "org.openo.nfvo.resmanage.common.update.success"
+ }
+ }
+} \ No newline at end of file
diff --git a/ResmanagementService/service/src/integration-test/resources/testcase/portroa/queryportsbyidfail1.json b/ResmanagementService/service/src/integration-test/resources/testcase/portroa/queryportsbyidfail1.json
new file mode 100644
index 0000000..6a1007f
--- /dev/null
+++ b/ResmanagementService/service/src/integration-test/resources/testcase/portroa/queryportsbyidfail1.json
@@ -0,0 +1,15 @@
+{
+ "request": {
+ "uri": "/openoapi/resmgr/v1/ports/aaaa",
+ "method": "get",
+ "headers": {
+ "Content-Type": "application/json;charset=UTF-8"
+ }
+ },
+ "response": {
+ "status": 200,
+ "json": {
+ "ports": []
+ }
+ }
+} \ No newline at end of file
diff --git a/ResmanagementService/service/src/integration-test/resources/testcase/portroa/queryportsbyidsuccess1.json b/ResmanagementService/service/src/integration-test/resources/testcase/portroa/queryportsbyidsuccess1.json
new file mode 100644
index 0000000..4fe360f
--- /dev/null
+++ b/ResmanagementService/service/src/integration-test/resources/testcase/portroa/queryportsbyidsuccess1.json
@@ -0,0 +1,23 @@
+{
+ "request": {
+ "uri": "/openoapi/resmgr/v1/ports/12345678",
+ "method": "get",
+ "headers": {
+ "Content-Type": "application/json;charset=UTF-8"
+ }
+ },
+ "response": {
+ "status": 200,
+ "json": {
+ "ports": [{
+ "id": "12345678",
+ "name": "portName",
+ "networkId": "1111",
+ "status": "ACTIVE",
+ "tenantId": "123456",
+ "vimId": "11",
+ "vimName": "22"
+ }]
+ }
+ }
+} \ No newline at end of file