summaryrefslogtreecommitdiffstats
path: root/ResmanagementService/service/src/integration-test/resources/testcase
diff options
context:
space:
mode:
Diffstat (limited to 'ResmanagementService/service/src/integration-test/resources/testcase')
-rw-r--r--ResmanagementService/service/src/integration-test/resources/testcase/hostroa/createhostsfail1.json24
-rw-r--r--ResmanagementService/service/src/integration-test/resources/testcase/hostroa/createhostssuccess1.json24
-rw-r--r--ResmanagementService/service/src/integration-test/resources/testcase/hostroa/deletehostsfail1.json15
-rw-r--r--ResmanagementService/service/src/integration-test/resources/testcase/hostroa/deletehostssuccess1.json15
-rw-r--r--ResmanagementService/service/src/integration-test/resources/testcase/hostroa/modhostsfail1.json24
-rw-r--r--ResmanagementService/service/src/integration-test/resources/testcase/hostroa/modhostssuccess1.json24
-rw-r--r--ResmanagementService/service/src/integration-test/resources/testcase/hostroa/queryhostsbyidfail1.json15
-rw-r--r--ResmanagementService/service/src/integration-test/resources/testcase/hostroa/queryhostsbyidsuccess1.json23
-rw-r--r--ResmanagementService/service/src/integration-test/resources/testcase/limitsroa/querycpulimitssuccess1.json23
-rw-r--r--ResmanagementService/service/src/integration-test/resources/testcase/limitsroa/querydisklimitssuccess1.json21
-rw-r--r--ResmanagementService/service/src/integration-test/resources/testcase/locationroa/createlocationsfail1.json23
-rw-r--r--ResmanagementService/service/src/integration-test/resources/testcase/locationroa/createlocationssuccess1.json23
-rw-r--r--ResmanagementService/service/src/integration-test/resources/testcase/locationroa/deletelocationsfail1.json15
-rw-r--r--ResmanagementService/service/src/integration-test/resources/testcase/locationroa/deletelocationssuccess1.json15
-rw-r--r--ResmanagementService/service/src/integration-test/resources/testcase/locationroa/modlocationsfail1.json23
-rw-r--r--ResmanagementService/service/src/integration-test/resources/testcase/locationroa/modlocationssuccess1.json23
-rw-r--r--ResmanagementService/service/src/integration-test/resources/testcase/locationroa/querylocationsbyidfail1.json15
-rw-r--r--ResmanagementService/service/src/integration-test/resources/testcase/locationroa/querylocationsbyidsuccess1.json22
-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
-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
-rw-r--r--ResmanagementService/service/src/integration-test/resources/testcase/resoperateroa/addresourcefail1.json18
-rw-r--r--ResmanagementService/service/src/integration-test/resources/testcase/resoperateroa/addresourcesuccess1.json18
-rw-r--r--ResmanagementService/service/src/integration-test/resources/testcase/resoperateroa/deleteresourcefail1.json15
-rw-r--r--ResmanagementService/service/src/integration-test/resources/testcase/resoperateroa/deleteresourcesuccess1.json15
-rw-r--r--ResmanagementService/service/src/integration-test/resources/testcase/resoperateroa/modresourcefail1.json17
-rw-r--r--ResmanagementService/service/src/integration-test/resources/testcase/resoperateroa/modresourcesuccess1.json17
-rw-r--r--ResmanagementService/service/src/integration-test/resources/testcase/siteroa/createsitesfail1.json30
-rw-r--r--ResmanagementService/service/src/integration-test/resources/testcase/siteroa/createsitessuccess1.json30
-rw-r--r--ResmanagementService/service/src/integration-test/resources/testcase/siteroa/deletesitesfail1.json15
-rw-r--r--ResmanagementService/service/src/integration-test/resources/testcase/siteroa/deletesitessuccess1.json15
-rw-r--r--ResmanagementService/service/src/integration-test/resources/testcase/siteroa/modsitesfail1.json30
-rw-r--r--ResmanagementService/service/src/integration-test/resources/testcase/siteroa/modsitessuccess1.json30
-rw-r--r--ResmanagementService/service/src/integration-test/resources/testcase/siteroa/querysitesbyidfail1.json15
-rw-r--r--ResmanagementService/service/src/integration-test/resources/testcase/siteroa/querysitesbyidsuccess1.json29
48 files changed, 999 insertions, 0 deletions
diff --git a/ResmanagementService/service/src/integration-test/resources/testcase/hostroa/createhostsfail1.json b/ResmanagementService/service/src/integration-test/resources/testcase/hostroa/createhostsfail1.json
new file mode 100644
index 0000000..2966f48
--- /dev/null
+++ b/ResmanagementService/service/src/integration-test/resources/testcase/hostroa/createhostsfail1.json
@@ -0,0 +1,24 @@
+{
+ "request": {
+ "uri": "/openoapi/resmgr/v1/hosts",
+ "method": "post",
+ "headers": {
+ "Content-Type": "application/json;charset=UTF-8"
+ },
+ "json": {
+ "id":"12345678",
+ "name": "hostName",
+ "cpu": "20",
+ "memory": "8",
+ "disk": "100",
+ "vimId": "123",
+ "vimName": "456"
+ }
+ },
+ "response": {
+ "status": 200,
+ "json": {
+ "msg": "org.openo.nfvo.resmanage.service.host.add.id.check"
+ }
+ }
+} \ No newline at end of file
diff --git a/ResmanagementService/service/src/integration-test/resources/testcase/hostroa/createhostssuccess1.json b/ResmanagementService/service/src/integration-test/resources/testcase/hostroa/createhostssuccess1.json
new file mode 100644
index 0000000..4573a0c
--- /dev/null
+++ b/ResmanagementService/service/src/integration-test/resources/testcase/hostroa/createhostssuccess1.json
@@ -0,0 +1,24 @@
+{
+ "request": {
+ "uri": "/openoapi/resmgr/v1/hosts",
+ "method": "post",
+ "headers": {
+ "Content-Type": "application/json;charset=UTF-8"
+ },
+ "json": {
+ "id":"12345678",
+ "name": "hostName",
+ "cpu": "20",
+ "memory": "8",
+ "disk": "100",
+ "vimId": "123",
+ "vimName": "456"
+ }
+ },
+ "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/hostroa/deletehostsfail1.json b/ResmanagementService/service/src/integration-test/resources/testcase/hostroa/deletehostsfail1.json
new file mode 100644
index 0000000..5144c9a
--- /dev/null
+++ b/ResmanagementService/service/src/integration-test/resources/testcase/hostroa/deletehostsfail1.json
@@ -0,0 +1,15 @@
+{
+ "request": {
+ "uri": "/openoapi/resmgr/v1/hosts?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/hostroa/deletehostssuccess1.json b/ResmanagementService/service/src/integration-test/resources/testcase/hostroa/deletehostssuccess1.json
new file mode 100644
index 0000000..98f3d13
--- /dev/null
+++ b/ResmanagementService/service/src/integration-test/resources/testcase/hostroa/deletehostssuccess1.json
@@ -0,0 +1,15 @@
+{
+ "request": {
+ "uri": "/openoapi/resmgr/v1/hosts?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/hostroa/modhostsfail1.json b/ResmanagementService/service/src/integration-test/resources/testcase/hostroa/modhostsfail1.json
new file mode 100644
index 0000000..de24b26
--- /dev/null
+++ b/ResmanagementService/service/src/integration-test/resources/testcase/hostroa/modhostsfail1.json
@@ -0,0 +1,24 @@
+{
+ "request": {
+ "uri": "/openoapi/resmgr/v1/hosts",
+ "method": "put",
+ "headers": {
+ "Content-Type": "application/json;charset=UTF-8"
+ },
+ "json": {
+ "id":"aaaa",
+ "name": "newName",
+ "cpu": "20",
+ "memory": "8",
+ "disk": "100",
+ "vimId": "123",
+ "vimName": "456"
+ }
+ },
+ "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/hostroa/modhostssuccess1.json b/ResmanagementService/service/src/integration-test/resources/testcase/hostroa/modhostssuccess1.json
new file mode 100644
index 0000000..3280951
--- /dev/null
+++ b/ResmanagementService/service/src/integration-test/resources/testcase/hostroa/modhostssuccess1.json
@@ -0,0 +1,24 @@
+{
+ "request": {
+ "uri": "/openoapi/resmgr/v1/hosts",
+ "method": "put",
+ "headers": {
+ "Content-Type": "application/json;charset=UTF-8"
+ },
+ "json": {
+ "id":"12345678",
+ "name": "hostName",
+ "cpu": "20",
+ "memory": "8",
+ "disk": "100",
+ "vimId": "123",
+ "vimName": "456"
+ }
+ },
+ "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/hostroa/queryhostsbyidfail1.json b/ResmanagementService/service/src/integration-test/resources/testcase/hostroa/queryhostsbyidfail1.json
new file mode 100644
index 0000000..fe528b2
--- /dev/null
+++ b/ResmanagementService/service/src/integration-test/resources/testcase/hostroa/queryhostsbyidfail1.json
@@ -0,0 +1,15 @@
+{
+ "request": {
+ "uri": "/openoapi/resmgr/v1/hosts/aaaa",
+ "method": "get",
+ "headers": {
+ "Content-Type": "application/json;charset=UTF-8"
+ }
+ },
+ "response": {
+ "status": 200,
+ "json": {
+ "hosts": []
+ }
+ }
+} \ No newline at end of file
diff --git a/ResmanagementService/service/src/integration-test/resources/testcase/hostroa/queryhostsbyidsuccess1.json b/ResmanagementService/service/src/integration-test/resources/testcase/hostroa/queryhostsbyidsuccess1.json
new file mode 100644
index 0000000..0cccaa0
--- /dev/null
+++ b/ResmanagementService/service/src/integration-test/resources/testcase/hostroa/queryhostsbyidsuccess1.json
@@ -0,0 +1,23 @@
+{
+ "request": {
+ "uri": "/openoapi/resmgr/v1/hosts/12345678",
+ "method": "get",
+ "headers": {
+ "Content-Type": "application/json;charset=UTF-8"
+ }
+ },
+ "response": {
+ "status": 200,
+ "json": {
+ "hosts": [{
+ "cpu": "20",
+ "disk": "100",
+ "id": "12345678",
+ "memory": "8",
+ "name": "hostName",
+ "vimId": "123",
+ "vimName": "456"
+ }]
+ }
+ }
+} \ No newline at end of file
diff --git a/ResmanagementService/service/src/integration-test/resources/testcase/limitsroa/querycpulimitssuccess1.json b/ResmanagementService/service/src/integration-test/resources/testcase/limitsroa/querycpulimitssuccess1.json
new file mode 100644
index 0000000..8b24164
--- /dev/null
+++ b/ResmanagementService/service/src/integration-test/resources/testcase/limitsroa/querycpulimitssuccess1.json
@@ -0,0 +1,23 @@
+{
+ "request": {
+ "uri": "/openoapi/resmgr/v1/limits/1234/cpu?vimId=123",
+ "method": "get",
+ "headers": {
+ "Content-Type": "application/json;charset=UTF-8"
+ }
+ },
+ "response": {
+ "status": 200,
+ "json": {
+ "limits": {
+ "rate": [],
+ "absolute": {
+ "maxTotalVolumes": 1000,
+ "totalVolumesUsed": 14,
+ "maxTotalVolumeGigabytes": 42000,
+ "totalGigabytesUsed":1054
+ }
+ }
+ }
+ }
+} \ No newline at end of file
diff --git a/ResmanagementService/service/src/integration-test/resources/testcase/limitsroa/querydisklimitssuccess1.json b/ResmanagementService/service/src/integration-test/resources/testcase/limitsroa/querydisklimitssuccess1.json
new file mode 100644
index 0000000..7da9cdb
--- /dev/null
+++ b/ResmanagementService/service/src/integration-test/resources/testcase/limitsroa/querydisklimitssuccess1.json
@@ -0,0 +1,21 @@
+{
+ "request": {
+ "uri": "/openoapi/resmgr/v1/limits/1234/disk?vimId=123",
+ "method": "get",
+ "headers": {
+ "Content-Type": "application/json;charset=UTF-8"
+ }
+ },
+ "response": {
+ "status": 200,
+ "json": {
+ "vimId": "123",
+ "vimName": "vim1",
+ "limits": {
+ "volumes": 1000,
+ "gigabytes": 42000,
+ "snapshots": 100
+ }
+ }
+ }
+} \ No newline at end of file
diff --git a/ResmanagementService/service/src/integration-test/resources/testcase/locationroa/createlocationsfail1.json b/ResmanagementService/service/src/integration-test/resources/testcase/locationroa/createlocationsfail1.json
new file mode 100644
index 0000000..c490bc9
--- /dev/null
+++ b/ResmanagementService/service/src/integration-test/resources/testcase/locationroa/createlocationsfail1.json
@@ -0,0 +1,23 @@
+{
+ "request": {
+ "uri": "/openoapi/resmgr/v1/locations",
+ "method": "post",
+ "headers": {
+ "Content-Type": "application/json;charset=UTF-8"
+ },
+ "json": {
+ "id": "12345678",
+ "country": "china",
+ "location": "shenzhen",
+ "latitude": "11",
+ "longitude": "22.2",
+ "description": ""
+ }
+ },
+ "response": {
+ "status": 200,
+ "json": {
+ "msg": "org.openo.nfvo.resmanage.service.base.location.add.entity.check"
+ }
+ }
+} \ No newline at end of file
diff --git a/ResmanagementService/service/src/integration-test/resources/testcase/locationroa/createlocationssuccess1.json b/ResmanagementService/service/src/integration-test/resources/testcase/locationroa/createlocationssuccess1.json
new file mode 100644
index 0000000..fb4b97a
--- /dev/null
+++ b/ResmanagementService/service/src/integration-test/resources/testcase/locationroa/createlocationssuccess1.json
@@ -0,0 +1,23 @@
+{
+ "request": {
+ "uri": "/openoapi/resmgr/v1/locations",
+ "method": "post",
+ "headers": {
+ "Content-Type": "application/json;charset=UTF-8"
+ },
+ "json": {
+ "id": "12345678",
+ "country": "china",
+ "location": "shenzhen",
+ "latitude": "11",
+ "longitude": "22.2",
+ "description": ""
+ }
+ },
+ "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/locationroa/deletelocationsfail1.json b/ResmanagementService/service/src/integration-test/resources/testcase/locationroa/deletelocationsfail1.json
new file mode 100644
index 0000000..136096d
--- /dev/null
+++ b/ResmanagementService/service/src/integration-test/resources/testcase/locationroa/deletelocationsfail1.json
@@ -0,0 +1,15 @@
+{
+ "request": {
+ "uri": "/openoapi/resmgr/v1/locations/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/locationroa/deletelocationssuccess1.json b/ResmanagementService/service/src/integration-test/resources/testcase/locationroa/deletelocationssuccess1.json
new file mode 100644
index 0000000..eaaf8d9
--- /dev/null
+++ b/ResmanagementService/service/src/integration-test/resources/testcase/locationroa/deletelocationssuccess1.json
@@ -0,0 +1,15 @@
+{
+ "request": {
+ "uri": "/openoapi/resmgr/v1/locations/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/locationroa/modlocationsfail1.json b/ResmanagementService/service/src/integration-test/resources/testcase/locationroa/modlocationsfail1.json
new file mode 100644
index 0000000..d362898
--- /dev/null
+++ b/ResmanagementService/service/src/integration-test/resources/testcase/locationroa/modlocationsfail1.json
@@ -0,0 +1,23 @@
+{
+ "request": {
+ "uri": "/openoapi/resmgr/v1/locations",
+ "method": "put",
+ "headers": {
+ "Content-Type": "application/json;charset=UTF-8"
+ },
+ "json": {
+ "id": "aaaa",
+ "country": "china",
+ "location": "shenzhen",
+ "latitude": "11.1",
+ "longitude": "22.2",
+ "description": ""
+ }
+ },
+ "response": {
+ "status": 200,
+ "json": {
+ "msg": "org.openo.nfvo.resmanage.service.base.location.update.modified.check"
+ }
+ }
+} \ No newline at end of file
diff --git a/ResmanagementService/service/src/integration-test/resources/testcase/locationroa/modlocationssuccess1.json b/ResmanagementService/service/src/integration-test/resources/testcase/locationroa/modlocationssuccess1.json
new file mode 100644
index 0000000..3205272
--- /dev/null
+++ b/ResmanagementService/service/src/integration-test/resources/testcase/locationroa/modlocationssuccess1.json
@@ -0,0 +1,23 @@
+{
+ "request": {
+ "uri": "/openoapi/resmgr/v1/locations",
+ "method": "put",
+ "headers": {
+ "Content-Type": "application/json;charset=UTF-8"
+ },
+ "json": {
+ "id": "12345678",
+ "country": "china",
+ "location": "shenzhen",
+ "latitude": "11.1",
+ "longitude": "22.2",
+ "description": ""
+ }
+ },
+ "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/locationroa/querylocationsbyidfail1.json b/ResmanagementService/service/src/integration-test/resources/testcase/locationroa/querylocationsbyidfail1.json
new file mode 100644
index 0000000..b49a37d
--- /dev/null
+++ b/ResmanagementService/service/src/integration-test/resources/testcase/locationroa/querylocationsbyidfail1.json
@@ -0,0 +1,15 @@
+{
+ "request": {
+ "uri": "/openoapi/resmgr/v1/locations/aaaa",
+ "method": "get",
+ "headers": {
+ "Content-Type": "application/json;charset=UTF-8"
+ }
+ },
+ "response": {
+ "status": 200,
+ "json": {
+ "locations": []
+ }
+ }
+} \ No newline at end of file
diff --git a/ResmanagementService/service/src/integration-test/resources/testcase/locationroa/querylocationsbyidsuccess1.json b/ResmanagementService/service/src/integration-test/resources/testcase/locationroa/querylocationsbyidsuccess1.json
new file mode 100644
index 0000000..387adc9
--- /dev/null
+++ b/ResmanagementService/service/src/integration-test/resources/testcase/locationroa/querylocationsbyidsuccess1.json
@@ -0,0 +1,22 @@
+{
+ "request": {
+ "uri": "/openoapi/resmgr/v1/locations/12345678",
+ "method": "get",
+ "headers": {
+ "Content-Type": "application/json;charset=UTF-8"
+ }
+ },
+ "response": {
+ "status": 200,
+ "json": {
+ "locations": [{
+ "country": "china",
+ "description": "",
+ "id": "12345678",
+ "latitude": "11",
+ "location": "shenzhen",
+ "longitude": "22.2"
+ }]
+ }
+ }
+} \ No newline at end of file
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
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
diff --git a/ResmanagementService/service/src/integration-test/resources/testcase/resoperateroa/addresourcefail1.json b/ResmanagementService/service/src/integration-test/resources/testcase/resoperateroa/addresourcefail1.json
new file mode 100644
index 0000000..a604f52
--- /dev/null
+++ b/ResmanagementService/service/src/integration-test/resources/testcase/resoperateroa/addresourcefail1.json
@@ -0,0 +1,18 @@
+{
+ "request": {
+ "uri": "/openoapi/resmgr/v1/resoperate/resmgr/vims?tenantId=1234",
+ "method": "post",
+ "headers": {
+ "Content-Type": "application/json;charset=UTF-8"
+ },
+ "json": {
+
+ }
+ },
+ "response": {
+ "status": 200,
+ "json": {
+ "msg": "org.openo.nfvo.resmanage.service.group.resoperate.add.res.no.vimId"
+ }
+ }
+} \ No newline at end of file
diff --git a/ResmanagementService/service/src/integration-test/resources/testcase/resoperateroa/addresourcesuccess1.json b/ResmanagementService/service/src/integration-test/resources/testcase/resoperateroa/addresourcesuccess1.json
new file mode 100644
index 0000000..b23f38f
--- /dev/null
+++ b/ResmanagementService/service/src/integration-test/resources/testcase/resoperateroa/addresourcesuccess1.json
@@ -0,0 +1,18 @@
+{
+ "request": {
+ "uri": "/openoapi/resmgr/v1/resoperate/resmgr/vims?tenantId=1234&vimId=123",
+ "method": "post",
+ "headers": {
+ "Content-Type": "application/json;charset=UTF-8"
+ },
+ "json": {
+
+ }
+ },
+ "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/resoperateroa/deleteresourcefail1.json b/ResmanagementService/service/src/integration-test/resources/testcase/resoperateroa/deleteresourcefail1.json
new file mode 100644
index 0000000..d60484c
--- /dev/null
+++ b/ResmanagementService/service/src/integration-test/resources/testcase/resoperateroa/deleteresourcefail1.json
@@ -0,0 +1,15 @@
+{
+ "request": {
+ "uri": "/openoapi/resmgr/v1/resoperate",
+ "method": "delete",
+ "headers": {
+ "Content-Type": "application/json;charset=UTF-8"
+ }
+ },
+ "response": {
+ "status": 200,
+ "json": {
+ "msg": "org.openo.nfvo.resmanage.service.group.resoperate.res.no.vimId"
+ }
+ }
+} \ No newline at end of file
diff --git a/ResmanagementService/service/src/integration-test/resources/testcase/resoperateroa/deleteresourcesuccess1.json b/ResmanagementService/service/src/integration-test/resources/testcase/resoperateroa/deleteresourcesuccess1.json
new file mode 100644
index 0000000..4b099ae
--- /dev/null
+++ b/ResmanagementService/service/src/integration-test/resources/testcase/resoperateroa/deleteresourcesuccess1.json
@@ -0,0 +1,15 @@
+{
+ "request": {
+ "uri": "/openoapi/resmgr/v1/resoperate?vimId=123",
+ "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/resoperateroa/modresourcefail1.json b/ResmanagementService/service/src/integration-test/resources/testcase/resoperateroa/modresourcefail1.json
new file mode 100644
index 0000000..0a54e89
--- /dev/null
+++ b/ResmanagementService/service/src/integration-test/resources/testcase/resoperateroa/modresourcefail1.json
@@ -0,0 +1,17 @@
+{
+ "request": {
+ "uri": "/openoapi/resmgr/v1/resoperate/updateres?tenantId=1234",
+ "method": "put",
+ "headers": {
+ "Content-Type": "application/json;charset=UTF-8"
+ },
+ "json": {
+ }
+ },
+ "response": {
+ "status": 200,
+ "json": {
+ "msg": "org.openo.nfvo.resmanage.service.group.resoperate.add.res.no.result"
+ }
+ }
+} \ No newline at end of file
diff --git a/ResmanagementService/service/src/integration-test/resources/testcase/resoperateroa/modresourcesuccess1.json b/ResmanagementService/service/src/integration-test/resources/testcase/resoperateroa/modresourcesuccess1.json
new file mode 100644
index 0000000..c3196c1
--- /dev/null
+++ b/ResmanagementService/service/src/integration-test/resources/testcase/resoperateroa/modresourcesuccess1.json
@@ -0,0 +1,17 @@
+{
+ "request": {
+ "uri": "/openoapi/resmgr/v1/resoperate/updateres?tenantId=1234&vimId=123",
+ "method": "put",
+ "headers": {
+ "Content-Type": "application/json;charset=UTF-8"
+ },
+ "json": {
+ }
+ },
+ "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/siteroa/createsitesfail1.json b/ResmanagementService/service/src/integration-test/resources/testcase/siteroa/createsitesfail1.json
new file mode 100644
index 0000000..5584c1e
--- /dev/null
+++ b/ResmanagementService/service/src/integration-test/resources/testcase/siteroa/createsitesfail1.json
@@ -0,0 +1,30 @@
+{
+ "request": {
+ "uri": "/openoapi/resmgr/v1/datacenters",
+ "method": "post",
+ "headers": {
+ "Content-Type": "application/json;charset=UTF-8"
+ },
+ "json": {
+ "country": "china",
+ "id": "12345678",
+ "location": "shanghai",
+ "name": "shanghai",
+ "status": "active",
+ "totalCPU": "100",
+ "totalDisk": "100",
+ "totalMemory": "100",
+ "usedCPU": "10",
+ "usedDisk": "10",
+ "usedMemory": "10",
+ "vimId": "123",
+ "vimName": "vimName"
+ }
+ },
+ "response": {
+ "status": 200,
+ "json": {
+ "msg": "org.openo.nfvo.resmanage.service.base.site.add.id.check"
+ }
+ }
+} \ No newline at end of file
diff --git a/ResmanagementService/service/src/integration-test/resources/testcase/siteroa/createsitessuccess1.json b/ResmanagementService/service/src/integration-test/resources/testcase/siteroa/createsitessuccess1.json
new file mode 100644
index 0000000..af0d3af
--- /dev/null
+++ b/ResmanagementService/service/src/integration-test/resources/testcase/siteroa/createsitessuccess1.json
@@ -0,0 +1,30 @@
+{
+ "request": {
+ "uri": "/openoapi/resmgr/v1/datacenters",
+ "method": "post",
+ "headers": {
+ "Content-Type": "application/json;charset=UTF-8"
+ },
+ "json": {
+ "country": "china",
+ "id": "12345678",
+ "location": "shanghai",
+ "name": "shanghai",
+ "status": "active",
+ "totalCPU": "100",
+ "totalDisk": "100",
+ "totalMemory": "100",
+ "usedCPU": "0",
+ "usedDisk": "0",
+ "usedMemory": "0",
+ "vimId": "123",
+ "vimName": "vimName"
+ }
+ },
+ "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/siteroa/deletesitesfail1.json b/ResmanagementService/service/src/integration-test/resources/testcase/siteroa/deletesitesfail1.json
new file mode 100644
index 0000000..aacd3fe
--- /dev/null
+++ b/ResmanagementService/service/src/integration-test/resources/testcase/siteroa/deletesitesfail1.json
@@ -0,0 +1,15 @@
+{
+ "request": {
+ "uri": "/openoapi/resmgr/v1/datacenters/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/siteroa/deletesitessuccess1.json b/ResmanagementService/service/src/integration-test/resources/testcase/siteroa/deletesitessuccess1.json
new file mode 100644
index 0000000..d4b083b
--- /dev/null
+++ b/ResmanagementService/service/src/integration-test/resources/testcase/siteroa/deletesitessuccess1.json
@@ -0,0 +1,15 @@
+{
+ "request": {
+ "uri": "/openoapi/resmgr/v1/datacenters/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/siteroa/modsitesfail1.json b/ResmanagementService/service/src/integration-test/resources/testcase/siteroa/modsitesfail1.json
new file mode 100644
index 0000000..2c1be4e
--- /dev/null
+++ b/ResmanagementService/service/src/integration-test/resources/testcase/siteroa/modsitesfail1.json
@@ -0,0 +1,30 @@
+{
+ "request": {
+ "uri": "/openoapi/resmgr/v1/datacenters",
+ "method": "put",
+ "headers": {
+ "Content-Type": "application/json;charset=UTF-8"
+ },
+ "json": {
+ "country": "china",
+ "id": "aaaa",
+ "location": "shanghai",
+ "name": "newName",
+ "status": "active",
+ "totalCPU": "100",
+ "totalDisk": "100",
+ "totalMemory": "100",
+ "usedCPU": "0",
+ "usedDisk": "0",
+ "usedMemory": "0",
+ "vimId": "123",
+ "vimName": "vimName"
+ }
+ },
+ "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/siteroa/modsitessuccess1.json b/ResmanagementService/service/src/integration-test/resources/testcase/siteroa/modsitessuccess1.json
new file mode 100644
index 0000000..da19356
--- /dev/null
+++ b/ResmanagementService/service/src/integration-test/resources/testcase/siteroa/modsitessuccess1.json
@@ -0,0 +1,30 @@
+{
+ "request": {
+ "uri": "/openoapi/resmgr/v1/datacenters",
+ "method": "put",
+ "headers": {
+ "Content-Type": "application/json;charset=UTF-8"
+ },
+ "json": {
+ "country": "china",
+ "id": "12345678",
+ "location": "shanghai",
+ "name": "newName",
+ "status": "active",
+ "totalCPU": "100",
+ "totalDisk": "100",
+ "totalMemory": "100",
+ "usedCPU": "0",
+ "usedDisk": "0",
+ "usedMemory": "0",
+ "vimId": "123",
+ "vimName": "vimName"
+ }
+ },
+ "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/siteroa/querysitesbyidfail1.json b/ResmanagementService/service/src/integration-test/resources/testcase/siteroa/querysitesbyidfail1.json
new file mode 100644
index 0000000..b12b02c
--- /dev/null
+++ b/ResmanagementService/service/src/integration-test/resources/testcase/siteroa/querysitesbyidfail1.json
@@ -0,0 +1,15 @@
+{
+ "request": {
+ "uri": "/openoapi/resmgr/v1/datacenters/aaaa",
+ "method": "get",
+ "headers": {
+ "Content-Type": "application/json;charset=UTF-8"
+ }
+ },
+ "response": {
+ "status": 200,
+ "json": {
+ "datacenters": []
+ }
+ }
+} \ No newline at end of file
diff --git a/ResmanagementService/service/src/integration-test/resources/testcase/siteroa/querysitesbyidsuccess1.json b/ResmanagementService/service/src/integration-test/resources/testcase/siteroa/querysitesbyidsuccess1.json
new file mode 100644
index 0000000..984a7eb
--- /dev/null
+++ b/ResmanagementService/service/src/integration-test/resources/testcase/siteroa/querysitesbyidsuccess1.json
@@ -0,0 +1,29 @@
+{
+ "request": {
+ "uri": "/openoapi/resmgr/v1/datacenters/12345678",
+ "method": "get",
+ "headers": {
+ "Content-Type": "application/json;charset=UTF-8"
+ }
+ },
+ "response": {
+ "status": 200,
+ "json": {
+ "datacenters": [{
+ "country": "china",
+ "id": "12345678",
+ "location": "shanghai",
+ "name": "shanghai",
+ "status": "active",
+ "totalCPU": "100",
+ "totalDisk": "100",
+ "totalMemory": "100",
+ "usedCPU": "0",
+ "usedDisk": "0",
+ "usedMemory": "0",
+ "vimId": "123",
+ "vimName": "vimName"
+ }]
+ }
+ }
+} \ No newline at end of file