diff options
Diffstat (limited to 'src/test/resources/mappings/so')
9 files changed, 174 insertions, 0 deletions
diff --git a/src/test/resources/mappings/so/so_delete_service_instance.json b/src/test/resources/mappings/so/so_delete_service_instance.json new file mode 100644 index 0000000..92a713d --- /dev/null +++ b/src/test/resources/mappings/so/so_delete_service_instance.json @@ -0,0 +1,18 @@ +{ + "request": { + "method": "DELETE", + "url": "/onap/so/infra/serviceInstantiation/v7/serviceInstances/e4688e5f-61a0-4f8b-ae02-a2fbde623bcb" + }, + "response": { + "status": 202, + "headers": { + "Content-Type": "application/json" + }, + "jsonBody": { + "requestReferences": { + "instanceId": "instanceId", + "requestId": "requestId" + } + } + } +} diff --git a/src/test/resources/mappings/so/so_e2e_delete_service_instance.json b/src/test/resources/mappings/so/so_e2e_delete_service_instance.json new file mode 100644 index 0000000..ea7b446 --- /dev/null +++ b/src/test/resources/mappings/so/so_e2e_delete_service_instance.json @@ -0,0 +1,15 @@ +{ + "request": { + "method": "DELETE", + "url": "/onap/so/infra/e2eServiceInstances/v3/e4688e5f-61a0-4f8b-ae02-a2fbde623bcb" + }, + "response": { + "status": 202, + "headers": { + "Content-Type": "application/json" + }, + "jsonBody": { + "operationId": "operationId" + } + } +} diff --git a/src/test/resources/mappings/so/so_get_.json b/src/test/resources/mappings/so/so_get_.json new file mode 100644 index 0000000..a251e69 --- /dev/null +++ b/src/test/resources/mappings/so/so_get_.json @@ -0,0 +1,20 @@ +{ + "request": { + "method": "GET", + "url": "/onap/so/infra/orchestrationRequests/v7/requestId" + }, + "response": { + "status": 200, + "headers": { + "Content-Type": "application/json" + }, + "jsonBody": { + "request": { + "requestStatus": { + "requestState": "COMPLETE", + "percentProgress": 100 + } + } + } + } +} diff --git a/src/test/resources/mappings/so/so_get_e2e.json b/src/test/resources/mappings/so/so_get_e2e.json new file mode 100644 index 0000000..530cd84 --- /dev/null +++ b/src/test/resources/mappings/so/so_get_e2e.json @@ -0,0 +1,25 @@ +{ +"request": { + "method": "GET", + "url": "/onap/so/infra/e2eServiceInstances/v3/serviceId/operations/operationId" + }, + "response": { + "status": 200, + "headers": { + "Content-Type": "application/json" + }, + "jsonBody": { + "operation": { + "operationId": "operationid", + "operation": "create", + "result": "finished", + "reason": "", + "userid": "", + "operationContent": "Creating E2E SOTN Service", + "progress": "100", + "operateAt": "", + "finishedAt": "" + } + } + } +} diff --git a/src/test/resources/mappings/so/so_get_e2e_delete.json b/src/test/resources/mappings/so/so_get_e2e_delete.json new file mode 100644 index 0000000..34247e0 --- /dev/null +++ b/src/test/resources/mappings/so/so_get_e2e_delete.json @@ -0,0 +1,25 @@ +{ + "request": { + "method": "GET", + "url": "/onap/so/infra/e2eServiceInstances/v3/e4688e5f-61a0-4f8b-ae02-a2fbde623bcb/operations/operationId" + }, + "response": { + "status": 200, + "headers": { + "Content-Type": "application/json" + }, + "jsonBody": { + "operation": { + "operationId": "operationid", + "operation": "create", + "result": "finished", + "reason": "", + "userid": "", + "operationContent": "Creating E2E SOTN Service", + "progress": 100, + "operateAt": "", + "finishedAt": "" + } + } + } +} diff --git a/src/test/resources/mappings/so/so_get_healthcheck.json b/src/test/resources/mappings/so/so_get_healthcheck.json new file mode 100644 index 0000000..8f2171d --- /dev/null +++ b/src/test/resources/mappings/so/so_get_healthcheck.json @@ -0,0 +1,12 @@ +{ + "request": { + "method": "GET", + "url": "/globalhealthcheck" + }, + "response": { + "status": 200, + "jsonBody": { + "bodyFileName": "so_healthcheck.xml" + } + } +} diff --git a/src/test/resources/mappings/so/so_healthcheck.xml b/src/test/resources/mappings/so/so_healthcheck.xml new file mode 100644 index 0000000..d023c9f --- /dev/null +++ b/src/test/resources/mappings/so/so_healthcheck.xml @@ -0,0 +1,23 @@ +<!-- + Copyright (c) 2019 Orange + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> +<!DOCTYPE html> +<html> + <head> + <meta charset="ISO-8859-1"> + <title>Health Check</title> + </head> + <body>Application ready</body> +</html>
\ No newline at end of file diff --git a/src/test/resources/mappings/so/so_post_create_service_instance.json b/src/test/resources/mappings/so/so_post_create_service_instance.json new file mode 100644 index 0000000..8d319f6 --- /dev/null +++ b/src/test/resources/mappings/so/so_post_create_service_instance.json @@ -0,0 +1,18 @@ +{ + "request": { + "method": "POST", + "url": "/onap/so/infra/serviceInstantiation/v7/serviceInstances/" + }, + "response": { + "status": 201, + "headers": { + "Content-Type": "application/json" + }, + "jsonBody": { + "requestReferences": { + "instanceId": "instanceId", + "requestId": "requestId" + } + } + } +} diff --git a/src/test/resources/mappings/so/so_post_e2e_create_service_instance.json b/src/test/resources/mappings/so/so_post_e2e_create_service_instance.json new file mode 100644 index 0000000..a357bef --- /dev/null +++ b/src/test/resources/mappings/so/so_post_e2e_create_service_instance.json @@ -0,0 +1,18 @@ +{ + "request": { + "method": "POST", + "url": "/onap/so/infra/e2eServiceInstances/v3" + }, + "response": { + "status": 201, + "headers": { + "Content-Type": "application/json" + }, + "jsonBody": { + "service": { + "serviceId": "serviceId", + "operationId": "operationId" + } + } + } +} |