aboutsummaryrefslogtreecommitdiffstats
path: root/runtime-acm/src/test
diff options
context:
space:
mode:
authorrameshiyer27 <ramesh.murugan.iyer@est.tech>2023-06-09 13:38:46 +0100
committerrameshiyer27 <ramesh.murugan.iyer@est.tech>2023-06-09 14:03:32 +0100
commit478775d9a56f09ae6d4103b09f127aa6ae150f46 (patch)
tree90fed61915190ae535bef77cbe19b8d248b50726 /runtime-acm/src/test
parentd58c0ca04ae993702b2c399afd52b01e503ec0fe (diff)
Update openapi.yaml swagger with new status codes
Changing the response code of delete operation from 200 to 202 as it requires to be delegated to the participants. Adding 500 server error code for all the REST responses. Issue-ID: POLICY-4729 Signed-off-by: zrrmmua <ramesh.murugan.iyer@est.tech> Change-Id: I92c17b253071c3fe4014f475d681bc99df4a9402
Diffstat (limited to 'runtime-acm/src/test')
-rw-r--r--runtime-acm/src/test/java/org/onap/policy/clamp/acm/runtime/instantiation/rest/InstantiationControllerTest.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime-acm/src/test/java/org/onap/policy/clamp/acm/runtime/instantiation/rest/InstantiationControllerTest.java b/runtime-acm/src/test/java/org/onap/policy/clamp/acm/runtime/instantiation/rest/InstantiationControllerTest.java
index 5380d67a6..8948f5f53 100644
--- a/runtime-acm/src/test/java/org/onap/policy/clamp/acm/runtime/instantiation/rest/InstantiationControllerTest.java
+++ b/runtime-acm/src/test/java/org/onap/policy/clamp/acm/runtime/instantiation/rest/InstantiationControllerTest.java
@@ -263,7 +263,7 @@ class InstantiationControllerTest extends CommonRestController {
var invocationBuilder = super.sendRequest(getInstanceEndPoint(compositionId, instResponse.getInstanceId()));
var resp = invocationBuilder.delete();
- assertEquals(Response.Status.OK.getStatusCode(), resp.getStatus());
+ assertEquals(Response.Status.ACCEPTED.getStatusCode(), resp.getStatus());
instResponse = resp.readEntity(InstantiationResponse.class);
InstantiationUtils.assertInstantiationResponse(instResponse, automationCompositionFromRsc);