summaryrefslogtreecommitdiffstats
path: root/ResmanagementService/service/src/integration-test/resources/testcase/siteroa
diff options
context:
space:
mode:
Diffstat (limited to 'ResmanagementService/service/src/integration-test/resources/testcase/siteroa')
-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
8 files changed, 194 insertions, 0 deletions
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