summaryrefslogtreecommitdiffstats
path: root/plugins/forwarding-plugins/src/test
diff options
context:
space:
mode:
authorRam Krishna Verma <ram_krishna.verma@bell.ca>2021-08-19 15:34:00 -0400
committerRam Krishna Verma <ram_krishna.verma@bell.ca>2021-08-20 21:04:02 +0000
commit0b310105b894996bcc87e645ce39f967b6f03b46 (patch)
tree1dac9a04d609d0b5845b6c2140dc7fc514089527 /plugins/forwarding-plugins/src/test
parent9fca60734e14dadb6f89e327c6f7b65ad2223e45 (diff)
Use generic create policy api
Change lifecycycle api forwarder to use generic create policy api for creating policies. Hence, no need to parse the tosca template and find fields to build the specific url. Issue-ID: POLICY-3545 Change-Id: I848df3cf2e0cbb9136120769293cc466d660036a Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca> (cherry picked from commit 784b94f5872721fadf39cc459e02bd77d9e7c796)
Diffstat (limited to 'plugins/forwarding-plugins/src/test')
-rw-r--r--plugins/forwarding-plugins/src/test/java/org/onap/policy/distribution/forwarding/testclasses/LifecycycleApiSimulatorEndpoint.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/forwarding-plugins/src/test/java/org/onap/policy/distribution/forwarding/testclasses/LifecycycleApiSimulatorEndpoint.java b/plugins/forwarding-plugins/src/test/java/org/onap/policy/distribution/forwarding/testclasses/LifecycycleApiSimulatorEndpoint.java
index 2b38434c..4a881cb0 100644
--- a/plugins/forwarding-plugins/src/test/java/org/onap/policy/distribution/forwarding/testclasses/LifecycycleApiSimulatorEndpoint.java
+++ b/plugins/forwarding-plugins/src/test/java/org/onap/policy/distribution/forwarding/testclasses/LifecycycleApiSimulatorEndpoint.java
@@ -1,6 +1,7 @@
/*-
* ============LICENSE_START=======================================================
* Copyright (C) 2019 Nordix Foundation.
+ * Modifications Copyright (C) 2021 Bell Canada.
* ================================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -64,7 +65,7 @@ public class LifecycycleApiSimulatorEndpoint {
* @return the response object
*/
@POST
- @Path("/api/v1/policytypes/{policyTypeId}/versions/{policyTypeVersion}/policies")
+ @Path("/api/v1/policies")
@Consumes(MediaType.APPLICATION_JSON)
@Produces(MediaType.APPLICATION_JSON)
public Response createPolicies(@PathParam("policyTypeId") final String policyTypeId,