From 056dcab91efc64b5f9fc39825f9242e7fa0b9d05 Mon Sep 17 00:00:00 2001 From: luxin Date: Mon, 3 Jul 2017 10:19:19 +0800 Subject: Upload nfvo resmanagement code Change-Id: Ibe023d4b09e1105b84eb43153b4d4037cae691db Signed-off-by: luxin --- .../testcase/hostroa/createhostsfail1.json | 24 ++++++++++++++++++++++ .../testcase/hostroa/createhostssuccess1.json | 24 ++++++++++++++++++++++ .../testcase/hostroa/deletehostsfail1.json | 15 ++++++++++++++ .../testcase/hostroa/deletehostssuccess1.json | 15 ++++++++++++++ .../resources/testcase/hostroa/modhostsfail1.json | 24 ++++++++++++++++++++++ .../testcase/hostroa/modhostssuccess1.json | 24 ++++++++++++++++++++++ .../testcase/hostroa/queryhostsbyidfail1.json | 15 ++++++++++++++ .../testcase/hostroa/queryhostsbyidsuccess1.json | 23 +++++++++++++++++++++ 8 files changed, 164 insertions(+) create mode 100644 ResmanagementService/service/src/integration-test/resources/testcase/hostroa/createhostsfail1.json create mode 100644 ResmanagementService/service/src/integration-test/resources/testcase/hostroa/createhostssuccess1.json create mode 100644 ResmanagementService/service/src/integration-test/resources/testcase/hostroa/deletehostsfail1.json create mode 100644 ResmanagementService/service/src/integration-test/resources/testcase/hostroa/deletehostssuccess1.json create mode 100644 ResmanagementService/service/src/integration-test/resources/testcase/hostroa/modhostsfail1.json create mode 100644 ResmanagementService/service/src/integration-test/resources/testcase/hostroa/modhostssuccess1.json create mode 100644 ResmanagementService/service/src/integration-test/resources/testcase/hostroa/queryhostsbyidfail1.json create mode 100644 ResmanagementService/service/src/integration-test/resources/testcase/hostroa/queryhostsbyidsuccess1.json (limited to 'ResmanagementService/service/src/integration-test/resources/testcase/hostroa') 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 -- cgit 1.2.3-korg