diff options
author | krishnaa96 <krishna.moorthy6@wipro.com> | 2020-12-07 12:33:17 +0530 |
---|---|---|
committer | krishnaa96 <krishna.moorthy6@wipro.com> | 2020-12-07 12:35:10 +0530 |
commit | 1ca0dd29ae3e348c92b2d23d85c5c135797e21af (patch) | |
tree | e0e882e5f6b09bcbb1e34d69f25798a6fe04787e /models-interactions/model-actors/actor.so/src/test | |
parent | ac7d552dfaca9ef9293282b9467ab29873c69f4b (diff) |
Fix Modify NSSI operation
Update the operation to receive payload
from the onset message
Issue-ID: POLICY-2916
Signed-off-by: krishnaa96 <krishna.moorthy6@wipro.com>
Change-Id: If49d41b35c1cd6562146fe4d92799a9a77a46db9
Diffstat (limited to 'models-interactions/model-actors/actor.so/src/test')
-rw-r--r-- | models-interactions/model-actors/actor.so/src/test/java/org/onap/policy/controlloop/actor/so/ModifyNssiTest.java | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/models-interactions/model-actors/actor.so/src/test/java/org/onap/policy/controlloop/actor/so/ModifyNssiTest.java b/models-interactions/model-actors/actor.so/src/test/java/org/onap/policy/controlloop/actor/so/ModifyNssiTest.java index ff5f87c4e..2d290d68a 100644 --- a/models-interactions/model-actors/actor.so/src/test/java/org/onap/policy/controlloop/actor/so/ModifyNssiTest.java +++ b/models-interactions/model-actors/actor.so/src/test/java/org/onap/policy/controlloop/actor/so/ModifyNssiTest.java @@ -78,7 +78,7 @@ public class ModifyNssiTest extends BasicSoOperation { params = params.toBuilder().retry(0).timeoutSec(5).executor(blockingExecutor).build(); oper = new ModifyNssi(params, config); - + oper.setProperty(OperationProperties.EVENT_PAYLOAD, getPayload()); outcome = oper.start().get(); assertEquals(OperationResult.SUCCESS, outcome.getResult()); @@ -100,20 +100,13 @@ public class ModifyNssiTest extends BasicSoOperation { public void testGetPropertyNames() { assertThat(oper.getPropertyNames()).isEqualTo( List.of( - OperationProperties.AAI_SERVICE, OperationProperties.EVENT_PAYLOAD)); } - @Override - @SuppressWarnings("unchecked") - protected Map<String, Object> makePayload() { - String payloadString = ResourceUtils + private String getPayload() { + return ResourceUtils .getResourceAsString("src/test/resources/ModifyNSSI.json"); - - try { - return coder.decode(payloadString, Map.class); - } catch (CoderException e) { - throw new IllegalArgumentException("invalid payload value: " + payloadString, e); - } } + + } |