diff options
author | rameshiyer27 <ramesh.murugan.iyer@est.tech> | 2023-06-09 13:38:46 +0100 |
---|---|---|
committer | Ramesh Murugan Iyer <ramesh.murugan.iyer@est.tech> | 2023-06-13 08:02:09 +0000 |
commit | d25a6d199dc55ee9cc59b8c9b76e74f1a61ef6b6 (patch) | |
tree | 0127317db2809185daaf685f1bda2d061bdbbca0 /runtime-acm/src/test | |
parent | 86f85dafe9e3d7f4c0c9cb29a4bd041775ce5a50 (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
(cherry picked from commit 478775d9a56f09ae6d4103b09f127aa6ae150f46)
Diffstat (limited to 'runtime-acm/src/test')
-rw-r--r-- | runtime-acm/src/test/java/org/onap/policy/clamp/acm/runtime/instantiation/rest/InstantiationControllerTest.java | 2 |
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); |