Update new SDNR actor with v2.0 structures 70/104170/2
authorJim Hahn <jrh3@att.com>
Mon, 23 Mar 2020 15:36:09 +0000 (11:36 -0400)
committerJim Hahn <jrh3@att.com>
Mon, 23 Mar 2020 16:19:00 +0000 (12:19 -0400)
commitef5768de060c6cbf10b06569e00617b052dc7e61
tree8eb12ea7f269243c99997fc520f9c09c4e9e1da1
parent09ca398afe3ecebcbf9ed53a03919372831986b3
Update new SDNR actor with v2.0 structures

SDNR v2.0 introduced an extra "input" and "output" layer within
the body of the messages.  Added POJOs to match that, and updated
the actor to use the new POJOs so that no extra steps are needed
during serialization or deserialization.
Also modified the SDNR and APPC-LCM simulators to discard request messages
when looking for the response, if the sink and source topics happen to
be the same.
Added the SDNR simulator.
Added more coverage to the SDNR actor.
Fixed a sonar issue in the SDNR junit code:
- use a constant instead of a literal (i.e., for "ModifyConfig")

Issue-ID: POLICY-2434
Signed-off-by: Jim Hahn <jrh3@att.com>
Change-Id: I70914a299dd5e9ee8eaccb5d42a2596cab814091
15 files changed:
models-interactions/model-actors/actor.sdnr/src/main/java/org/onap/policy/controlloop/actor/sdnr/ModifyConfigOperation.java
models-interactions/model-actors/actor.sdnr/src/main/java/org/onap/policy/controlloop/actor/sdnr/SdnrOperation.java
models-interactions/model-actors/actor.sdnr/src/test/java/org/onap/policy/controlloop/actor/sdnr/BasicSdnrOperation.java
models-interactions/model-actors/actor.sdnr/src/test/java/org/onap/policy/controlloop/actor/sdnr/ModifyConfigOperationTest.java
models-interactions/model-actors/actor.sdnr/src/test/java/org/onap/policy/controlloop/actor/sdnr/SdnrOperationTest.java
models-interactions/model-impl/sdnr/src/main/java/org/onap/policy/sdnr/PciBody.java [new file with mode: 0644]
models-interactions/model-impl/sdnr/src/main/java/org/onap/policy/sdnr/PciMessage.java [new file with mode: 0644]
models-interactions/model-simulators/pom.xml
models-interactions/model-simulators/src/main/java/org/onap/policy/simulators/AppcLcmTopicServer.java
models-interactions/model-simulators/src/main/java/org/onap/policy/simulators/SdnrTopicServer.java [new file with mode: 0644]
models-interactions/model-simulators/src/main/resources/org/onap/policy/simulators/sdnr/vpci.sdnr.success.json [new file with mode: 0644]
models-interactions/model-simulators/src/test/java/org/onap/policy/simulators/AppcLcmTopicServerTest.java
models-interactions/model-simulators/src/test/java/org/onap/policy/simulators/SdnrTopicServerTest.java [new file with mode: 0644]
models-interactions/model-simulators/src/test/resources/org/onap/policy/simulators/sdnr/vpci.sdnr.request.json [new file with mode: 0644]
models-sim/policy-models-simulators/src/test/resources/simParameters.json