summaryrefslogtreecommitdiffstats
path: root/runtime-acm/src/test/java/org
diff options
context:
space:
mode:
authorlapentafd <francesco.lapenta@est.tech>2023-05-08 10:07:26 +0100
committerFrancesco Davide Lapenta <francesco.lapenta@est.tech>2023-05-08 10:29:18 +0000
commitb4b9a1f3c81a1c64271e38d879a84f6b134d3a54 (patch)
tree6d02f2cd9db6a20e4b90ad6255ccbe9cb4110944 /runtime-acm/src/test/java/org
parent1b54aea09dcc3a278a55d7e7754fd2bc095ba789 (diff)
Update ACM-R missing stubs
Fix typo and adding return 202 to missing stub Issue-ID: POLICY-4143 Change-Id: I9b59b762395a1c3a1ae262ed4ac7679de402e0ac Signed-off-by: lapentafd <francesco.lapenta@est.tech>
Diffstat (limited to 'runtime-acm/src/test/java/org')
-rw-r--r--runtime-acm/src/test/java/org/onap/policy/clamp/acm/runtime/contract/CommissioningControllerStubTest.java2
-rw-r--r--runtime-acm/src/test/java/org/onap/policy/clamp/acm/runtime/contract/InstantiationControllerStubTest.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/runtime-acm/src/test/java/org/onap/policy/clamp/acm/runtime/contract/CommissioningControllerStubTest.java b/runtime-acm/src/test/java/org/onap/policy/clamp/acm/runtime/contract/CommissioningControllerStubTest.java
index 8c956aede..2c72a8299 100644
--- a/runtime-acm/src/test/java/org/onap/policy/clamp/acm/runtime/contract/CommissioningControllerStubTest.java
+++ b/runtime-acm/src/test/java/org/onap/policy/clamp/acm/runtime/contract/CommissioningControllerStubTest.java
@@ -70,7 +70,7 @@ class CommissioningControllerStubTest extends CommonRestController {
void testPut() {
var invocationBuilder = super.sendRequest(COMMISSIONING_ENDPOINT + "/" + COMPOSITION_ID);
var respPost = invocationBuilder.put(Entity.json(serviceTemplate));
- assertThat(Response.Status.OK.getStatusCode()).isEqualTo(respPost.getStatus());
+ assertThat(Response.Status.ACCEPTED.getStatusCode()).isEqualTo(respPost.getStatus());
}
@Test
diff --git a/runtime-acm/src/test/java/org/onap/policy/clamp/acm/runtime/contract/InstantiationControllerStubTest.java b/runtime-acm/src/test/java/org/onap/policy/clamp/acm/runtime/contract/InstantiationControllerStubTest.java
index 9df4df886..4f3c93f43 100644
--- a/runtime-acm/src/test/java/org/onap/policy/clamp/acm/runtime/contract/InstantiationControllerStubTest.java
+++ b/runtime-acm/src/test/java/org/onap/policy/clamp/acm/runtime/contract/InstantiationControllerStubTest.java
@@ -80,7 +80,7 @@ class InstantiationControllerStubTest extends CommonRestController {
+ "/" + INSTANTIATION_ENDPOINT
+ "/" + INSTANCE_ID);
var respPost = invocationBuilder.put(Entity.json(new AcInstanceStateUpdate()));
- assertThat(Response.Status.OK.getStatusCode()).isEqualTo(respPost.getStatus());
+ assertThat(Response.Status.ACCEPTED.getStatusCode()).isEqualTo(respPost.getStatus());
}
@Test