diff options
author | Pamela Dragosh <pdragosh@research.att.com> | 2018-11-01 00:44:53 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2018-11-01 00:44:53 +0000 |
commit | 6fcc62432b36769a2c03e066f6d128767c73734f (patch) | |
tree | da95d4f3203199573a5404d0bb0ac60811589127 /controlloop/common/simulators | |
parent | fd6a4f3c06094bbee9c200f6b0fd66ae8f2c6b8a (diff) | |
parent | 74f3d187db5ffefb7167b5ae05ff43406f4c24f7 (diff) |
Merge "Add /serviceInstances/ to SO URL for scale-out"
Diffstat (limited to 'controlloop/common/simulators')
2 files changed, 3 insertions, 2 deletions
diff --git a/controlloop/common/simulators/src/main/java/org/onap/policy/simulators/SoSimulatorJaxRs.java b/controlloop/common/simulators/src/main/java/org/onap/policy/simulators/SoSimulatorJaxRs.java index 8bab8bba4..c99fc12bb 100644 --- a/controlloop/common/simulators/src/main/java/org/onap/policy/simulators/SoSimulatorJaxRs.java +++ b/controlloop/common/simulators/src/main/java/org/onap/policy/simulators/SoSimulatorJaxRs.java @@ -44,7 +44,7 @@ public class SoSimulatorJaxRs { * @return the response */ @POST - @Path("/v7/{serviceInstanceId}/vnfs/{vnfInstanceId}/vfModules/scaleOut") + @Path("/v7/serviceInstances/{serviceInstanceId}/vnfs/{vnfInstanceId}/vfModules/scaleOut") @Consumes(MediaType.APPLICATION_JSON) @Produces("application/json") public String soPostQuery(@PathParam("serviceInstanceId") final String serviceInstanceId, diff --git a/controlloop/common/simulators/src/test/java/org/onap/policy/simulators/SoSimulatorTest.java b/controlloop/common/simulators/src/test/java/org/onap/policy/simulators/SoSimulatorTest.java index 772dd7f2c..86f7b3e96 100644 --- a/controlloop/common/simulators/src/test/java/org/onap/policy/simulators/SoSimulatorTest.java +++ b/controlloop/common/simulators/src/test/java/org/onap/policy/simulators/SoSimulatorTest.java @@ -139,7 +139,8 @@ public class SoSimulatorTest { public void testResponse() { final String request = Serialization.gsonPretty.toJson(this.createTestRequest()); final Pair<Integer, String> httpDetails = new RESTManager().post( - "http://localhost:6667/serviceInstantiation/v7/12345/vnfs/12345/vfModules/scaleOut", "username", + "http://localhost:6667/serviceInstantiation/v7/serviceInstances/12345/vnfs/12345/vfModules/scaleOut", + "username", "password", new HashMap<>(), "application/json", request); assertNotNull(httpDetails); final SOResponse response = Serialization.gsonPretty.fromJson(httpDetails.second, SOResponse.class); |