diff options
Diffstat (limited to 'src')
3 files changed, 5 insertions, 5 deletions
diff --git a/src/main/java/org/onap/nbi/OnapComponentsUrlPaths.java b/src/main/java/org/onap/nbi/OnapComponentsUrlPaths.java index c01b04c..417fa51 100644 --- a/src/main/java/org/onap/nbi/OnapComponentsUrlPaths.java +++ b/src/main/java/org/onap/nbi/OnapComponentsUrlPaths.java @@ -58,7 +58,7 @@ public final class OnapComponentsUrlPaths { // MSO public static final String MSO_CREATE_SERVICE_INSTANCE_PATH = - "/onap/so/infra/serviceInstantiation/v7/serviceInstances/"; + "/onap/so/infra/serviceInstantiation/v7/serviceInstances"; public static final String MSO_GET_REQUEST_STATUS_PATH = "/onap/so/infra/orchestrationRequests/v7/"; public static final String MSO_DELETE_REQUEST_STATUS_PATH = "/onap/so/infra/serviceInstantiation/v7/serviceInstances/"; 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, |