aboutsummaryrefslogtreecommitdiffstats
path: root/participant/participant-impl/participant-impl-policy/src/test
diff options
context:
space:
mode:
authorliamfallon <liam.fallon@est.tech>2022-12-01 15:24:57 +0000
committerliamfallon <liam.fallon@est.tech>2022-12-06 12:53:44 +0000
commitcf5af3fd2e67b0aef402114a0f3ae263fdfc7efe (patch)
tree844e1f34ffe75187e1a76ebbfe724874f2dba188 /participant/participant-impl/participant-impl-policy/src/test
parent7af90cd8fdabdd1c3ae79d3551980016d6b24f7e (diff)
Replace SpringFox with SpringDoc in CLAMP
This commit: - Remove springfox from CLAMP - updates the commissioning, AC Element, and K8S particiapnt to use the generated interface rather than the hard coded one - removes swagger annotations from handwritten code - implements SpringDoc for the <base_path>/v3/api-docs on endpoints Issue-ID: POLICY-4404 Change-Id: I49f48bc7828cb49dab854ef9ed16a9aa377983e1 Signed-off-by: liamfallon <liam.fallon@est.tech>
Diffstat (limited to 'participant/participant-impl/participant-impl-policy/src/test')
-rw-r--r--participant/participant-impl/participant-impl-policy/src/test/java/org/onap/policy/clamp/acm/participant/policy/main/utils/MockRestEndpoint.java10
1 files changed, 3 insertions, 7 deletions
diff --git a/participant/participant-impl/participant-impl-policy/src/test/java/org/onap/policy/clamp/acm/participant/policy/main/utils/MockRestEndpoint.java b/participant/participant-impl/participant-impl-policy/src/test/java/org/onap/policy/clamp/acm/participant/policy/main/utils/MockRestEndpoint.java
index 9f56a29ca..b7485c6ca 100644
--- a/participant/participant-impl/participant-impl-policy/src/test/java/org/onap/policy/clamp/acm/participant/policy/main/utils/MockRestEndpoint.java
+++ b/participant/participant-impl/participant-impl-policy/src/test/java/org/onap/policy/clamp/acm/participant/policy/main/utils/MockRestEndpoint.java
@@ -20,7 +20,6 @@
package org.onap.policy.clamp.acm.participant.policy.main.utils;
-import io.swagger.annotations.ApiParam;
import javax.ws.rs.DELETE;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
@@ -46,8 +45,7 @@ public class MockRestEndpoint {
*/
@Path("policy/api/v1/policytypes")
@POST
- public Response createPolicyType(
- @RequestBody @ApiParam(value = "Entity body", required = true) ToscaServiceTemplate body) {
+ public Response createPolicyType(@RequestBody ToscaServiceTemplate body) {
return Response.status(200).build();
}
@@ -59,8 +57,7 @@ public class MockRestEndpoint {
*/
@Path("policy/api/v1/policies")
@POST
- public Response createPolicy(
- @RequestBody @ApiParam(value = "Entity body ", required = true) ToscaServiceTemplate body) {
+ public Response createPolicy(@RequestBody ToscaServiceTemplate body) {
return Response.status(200).build();
}
@@ -94,8 +91,7 @@ public class MockRestEndpoint {
*/
@Path("policy/pap/v1/pdps/deployments/batch")
@POST
- public Response handlePolicyDeployOrUndeploy(
- @RequestBody @ApiParam(value = "Entity body", required = true) DeploymentGroups body) {
+ public Response handlePolicyDeployOrUndeploy(@RequestBody DeploymentGroups body) {
return Response.status(200).build();
}