diff options
author | aosull01 <adrian.osullivan@huawei.com> | 2020-04-15 15:48:58 +0100 |
---|---|---|
committer | aosull01 <adrian.osullivan@huawei.com> | 2020-04-15 15:51:10 +0100 |
commit | 86f0fd6ce609d5cf496ce4bb22656fb1ceb43c54 (patch) | |
tree | 07263105c7f1789127c82b5f08860e6200ebf59e /src/test | |
parent | f5f7ea1cda4d87128a85a864fe96d7c2ec852ef9 (diff) |
Update SO POST API for serviceInstances6.0.3
Issue-ID: EXTAPI-431
Signed-off-by: aosull01 <adrian.osullivan@huawei.com>
Change-Id: Ieadbfb3ff3bc15664b7526c3ee8e8d628d6af4d7
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/java/org/onap/nbi/test/ExecutionTaskTest.java | 6 | ||||
-rw-r--r-- | src/test/resources/mappings/so/so_post_create_service_instance.json | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/test/java/org/onap/nbi/test/ExecutionTaskTest.java b/src/test/java/org/onap/nbi/test/ExecutionTaskTest.java index ca33c39..5b39600 100644 --- a/src/test/java/org/onap/nbi/test/ExecutionTaskTest.java +++ b/src/test/java/org/onap/nbi/test/ExecutionTaskTest.java @@ -414,7 +414,7 @@ public class ExecutionTaskTest { ExecutionTask executionTaskA = ServiceOrderExecutionTaskAssertions .setUpBddForExecutionTaskSucess(serviceOrderRepository, executionTaskRepository, ActionType.ADD); - Context.removeWireMockMapping("/onap/so/infra/serviceInstantiation/v7/serviceInstances/"); + Context.removeWireMockMapping("/onap/so/infra/serviceInstantiation/v7/serviceInstances"); SoTaskProcessor.processOrderItem(executionTaskA); ServiceOrder serviceOrderChecked = getServiceOrder("test"); @@ -433,7 +433,7 @@ public class ExecutionTaskTest { ExecutionTask executionTaskA = ServiceOrderExecutionTaskAssertions .setUpBddForExecutionTaskSucess(serviceOrderRepository, executionTaskRepository, ActionType.ADD); - Context.removeWireMockMapping("/onap/so/infra/serviceInstantiation/v7/serviceInstances/"); + Context.removeWireMockMapping("/onap/so/infra/serviceInstantiation/v7/serviceInstances"); Context.removeWireMockMapping("/onap/so/infra/orchestrationRequests/v7/requestId"); SoTaskProcessor.processOrderItem(executionTaskA); @@ -473,7 +473,7 @@ public class ExecutionTaskTest { ExecutionTask executionTaskA = ServiceOrderExecutionTaskAssertions .setUpBddForExecutionTaskSucess(serviceOrderRepository, executionTaskRepository, ActionType.ADD); - changeWireMockResponse("/onap/so/infra/serviceInstantiation/v7/serviceInstances/", 400, + changeWireMockResponse("/onap/so/infra/serviceInstantiation/v7/serviceInstances", 400, "\"serviceException\": {\n" + " \"messageId\": \"SVC0002\",\n" + " \"text\": \"Error parsing request. org.openecomp.mso.apihandler.common.ValidationException: serviceInstance already existsd\"\n" + " }"); 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 index 8d319f6..c1d556e 100644 --- a/src/test/resources/mappings/so/so_post_create_service_instance.json +++ b/src/test/resources/mappings/so/so_post_create_service_instance.json @@ -1,7 +1,7 @@ { "request": { "method": "POST", - "url": "/onap/so/infra/serviceInstantiation/v7/serviceInstances/" + "url": "/onap/so/infra/serviceInstantiation/v7/serviceInstances" }, "response": { "status": 201, |