diff options
author | Jim Hahn <jrh3@att.com> | 2020-03-23 11:36:09 -0400 |
---|---|---|
committer | Jim Hahn <jrh3@att.com> | 2020-03-23 12:19:00 -0400 |
commit | ef5768de060c6cbf10b06569e00617b052dc7e61 (patch) | |
tree | 8eb12ea7f269243c99997fc520f9c09c4e9e1da1 /models-sim | |
parent | 09ca398afe3ecebcbf9ed53a03919372831986b3 (diff) |
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
Diffstat (limited to 'models-sim')
-rw-r--r-- | models-sim/policy-models-simulators/src/test/resources/simParameters.json | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/models-sim/policy-models-simulators/src/test/resources/simParameters.json b/models-sim/policy-models-simulators/src/test/resources/simParameters.json index 5f946f105..33821a538 100644 --- a/models-sim/policy-models-simulators/src/test/resources/simParameters.json +++ b/models-sim/policy-models-simulators/src/test/resources/simParameters.json @@ -62,6 +62,12 @@ "servers": ["localhost"], "topicCommInfrastructure": "DMAAP", "useHttps": true + }, + { + "topic": "SDNR-CL", + "servers": ["localhost"], + "topicCommInfrastructure": "DMAAP", + "useHttps": true } ], "topicSources": [ @@ -76,6 +82,12 @@ "servers": ["localhost"], "topicCommInfrastructure": "DMAAP", "useHttps": true + }, + { + "topic": "SDNR-CL-RSP", + "servers": ["localhost"], + "topicCommInfrastructure": "DMAAP", + "useHttps": true } ], "topicServers": [ @@ -90,6 +102,12 @@ "providerClass": "org.onap.policy.simulators.AppcLcmTopicServer", "sink": "APPC-LCM-WRITE", "source": "APPC-LCM-READ" + }, + { + "name": "SDNR simulator", + "providerClass": "org.onap.policy.simulators.SdnrTopicServer", + "sink": "SDNR-CL", + "source": "SDNR-CL-RSP" } ] } |