summaryrefslogtreecommitdiffstats
path: root/ResmanagementService/service/src/integration-test/resources/testcase/networkroa
diff options
context:
space:
mode:
Diffstat (limited to 'ResmanagementService/service/src/integration-test/resources/testcase/networkroa')
-rw-r--r--ResmanagementService/service/src/integration-test/resources/testcase/networkroa/createnetworksfail1.json26
-rw-r--r--ResmanagementService/service/src/integration-test/resources/testcase/networkroa/createnetworkssuccess1.json26
-rw-r--r--ResmanagementService/service/src/integration-test/resources/testcase/networkroa/deletenetworksfail1.json15
-rw-r--r--ResmanagementService/service/src/integration-test/resources/testcase/networkroa/deletenetworkssuccess1.json15
-rw-r--r--ResmanagementService/service/src/integration-test/resources/testcase/networkroa/modnetworksfail1.json26
-rw-r--r--ResmanagementService/service/src/integration-test/resources/testcase/networkroa/modnetworkssuccess1.json26
-rw-r--r--ResmanagementService/service/src/integration-test/resources/testcase/networkroa/querynetworksbyidfail1.json15
-rw-r--r--ResmanagementService/service/src/integration-test/resources/testcase/networkroa/querynetworksbyidsuccess1.json25
8 files changed, 174 insertions, 0 deletions
diff --git a/ResmanagementService/service/src/integration-test/resources/testcase/networkroa/createnetworksfail1.json b/ResmanagementService/service/src/integration-test/resources/testcase/networkroa/createnetworksfail1.json
new file mode 100644
index 0000000..014d49f
--- /dev/null
+++ b/ResmanagementService/service/src/integration-test/resources/testcase/networkroa/createnetworksfail1.json
@@ -0,0 +1,26 @@
+{
+ "request": {
+ "uri": "/openoapi/resmgr/v1/networks",
+ "method": "post",
+ "headers": {
+ "Content-Type": "application/json;charset=UTF-8"
+ },
+ "json": {
+ "id": "12345678",
+ "name": "name1",
+ "tenantId": "111111",
+ "status": "active",
+ "vimId": "123",
+ "vimName": "vimName",
+ "physicalNetwork": "physnet1",
+ "networkType": "vlan",
+ "segmentationId": "26"
+ }
+ },
+ "response": {
+ "status": 200,
+ "json": {
+ "msg": "org.openo.nfvo.resmanage.service.base.network.add.entity.check"
+ }
+ }
+} \ No newline at end of file
diff --git a/ResmanagementService/service/src/integration-test/resources/testcase/networkroa/createnetworkssuccess1.json b/ResmanagementService/service/src/integration-test/resources/testcase/networkroa/createnetworkssuccess1.json
new file mode 100644
index 0000000..b909858
--- /dev/null
+++ b/ResmanagementService/service/src/integration-test/resources/testcase/networkroa/createnetworkssuccess1.json
@@ -0,0 +1,26 @@
+{
+ "request": {
+ "uri": "/openoapi/resmgr/v1/networks",
+ "method": "post",
+ "headers": {
+ "Content-Type": "application/json;charset=UTF-8"
+ },
+ "json": {
+ "id": "12345678",
+ "name": "name1",
+ "tenantId": "111111",
+ "status": "active",
+ "vimId": "123",
+ "vimName": "vimName",
+ "physicalNetwork": "physnet1",
+ "networkType": "vlan",
+ "segmentationId": "26"
+ }
+ },
+ "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/networkroa/deletenetworksfail1.json b/ResmanagementService/service/src/integration-test/resources/testcase/networkroa/deletenetworksfail1.json
new file mode 100644
index 0000000..d3a5e5a
--- /dev/null
+++ b/ResmanagementService/service/src/integration-test/resources/testcase/networkroa/deletenetworksfail1.json
@@ -0,0 +1,15 @@
+{
+ "request": {
+ "uri": "/openoapi/resmgr/v1/networks?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/networkroa/deletenetworkssuccess1.json b/ResmanagementService/service/src/integration-test/resources/testcase/networkroa/deletenetworkssuccess1.json
new file mode 100644
index 0000000..1e56c4b
--- /dev/null
+++ b/ResmanagementService/service/src/integration-test/resources/testcase/networkroa/deletenetworkssuccess1.json
@@ -0,0 +1,15 @@
+{
+ "request": {
+ "uri": "/openoapi/resmgr/v1/networks?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/networkroa/modnetworksfail1.json b/ResmanagementService/service/src/integration-test/resources/testcase/networkroa/modnetworksfail1.json
new file mode 100644
index 0000000..2852a2a
--- /dev/null
+++ b/ResmanagementService/service/src/integration-test/resources/testcase/networkroa/modnetworksfail1.json
@@ -0,0 +1,26 @@
+{
+ "request": {
+ "uri": "/openoapi/resmgr/v1/networks",
+ "method": "put",
+ "headers": {
+ "Content-Type": "application/json;charset=UTF-8"
+ },
+ "json": {
+ "id": "aaaa",
+ "name": "newName1",
+ "tenantId": "111111",
+ "status": "active",
+ "vimId": "123",
+ "vimName": "vimName",
+ "physicalNetwork": "physnet1",
+ "networkType": "vlan",
+ "segmentationId": "26"
+ }
+ },
+ "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/networkroa/modnetworkssuccess1.json b/ResmanagementService/service/src/integration-test/resources/testcase/networkroa/modnetworkssuccess1.json
new file mode 100644
index 0000000..fc6aed8
--- /dev/null
+++ b/ResmanagementService/service/src/integration-test/resources/testcase/networkroa/modnetworkssuccess1.json
@@ -0,0 +1,26 @@
+{
+ "request": {
+ "uri": "/openoapi/resmgr/v1/networks",
+ "method": "put",
+ "headers": {
+ "Content-Type": "application/json;charset=UTF-8"
+ },
+ "json": {
+ "id": "12345678",
+ "name": "newName1",
+ "tenantId": "111111",
+ "status": "active",
+ "vimId": "123",
+ "vimName": "vimName",
+ "physicalNetwork": "physnet1",
+ "networkType": "vlan",
+ "segmentationId": "26"
+ }
+ },
+ "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/networkroa/querynetworksbyidfail1.json b/ResmanagementService/service/src/integration-test/resources/testcase/networkroa/querynetworksbyidfail1.json
new file mode 100644
index 0000000..ae888cf
--- /dev/null
+++ b/ResmanagementService/service/src/integration-test/resources/testcase/networkroa/querynetworksbyidfail1.json
@@ -0,0 +1,15 @@
+{
+ "request": {
+ "uri": "/openoapi/resmgr/v1/networks/aaaa",
+ "method": "get",
+ "headers": {
+ "Content-Type": "application/json;charset=UTF-8"
+ }
+ },
+ "response": {
+ "status": 200,
+ "json": {
+ "networks": []
+ }
+ }
+} \ No newline at end of file
diff --git a/ResmanagementService/service/src/integration-test/resources/testcase/networkroa/querynetworksbyidsuccess1.json b/ResmanagementService/service/src/integration-test/resources/testcase/networkroa/querynetworksbyidsuccess1.json
new file mode 100644
index 0000000..b933eb4
--- /dev/null
+++ b/ResmanagementService/service/src/integration-test/resources/testcase/networkroa/querynetworksbyidsuccess1.json
@@ -0,0 +1,25 @@
+{
+ "request": {
+ "uri": "/openoapi/resmgr/v1/networks/12345678",
+ "method": "get",
+ "headers": {
+ "Content-Type": "application/json;charset=UTF-8"
+ }
+ },
+ "response": {
+ "status": 200,
+ "json": {
+ "networks": [{
+ "id": "12345678",
+ "name": "name1",
+ "tenant_id": "111111",
+ "status": "active",
+ "vimId": "123",
+ "vimName": "vimName",
+ "provider:physical_network": "physnet1",
+ "provider:network_type": "vlan",
+ "provider:segmentation_id": "26"
+ }]
+ }
+ }
+} \ No newline at end of file