Bug fixes and improvements in CDS Simulator 06/113806/4
authora.sreekumar <ajith.sreekumar@bell.ca>
Mon, 12 Oct 2020 16:22:32 +0000 (17:22 +0100)
committera.sreekumar <ajith.sreekumar@bell.ca>
Tue, 13 Oct 2020 15:08:19 +0000 (16:08 +0100)
commite8c84108137d06ae3b7e4e1c1989d9ee9e33c980
tree7569c923a2bc198e07b3174bd6e58b356bcc4704
parent4201789ab88e2f322ae7f701d1f43d5b5b3bafce
Bug fixes and improvements in CDS Simulator

1) CDS Simulator was not able to run alone. It needed one of the
RestServer simulators to start up to continue running. Providing the cds
simulators parameters alone in the config file was resulting in
termination of the Main process. This is fixed.

2) Response from the CDS Simuator when blueprint and action names are
unknown (in real cases, when a corresponding CBA is not uploaded to CDS) is updated to mimic an actual CDS response instead of always
returning a dummy success response.

Change-Id: I79a6d158addaad31649809006d1e3c1dfdb47a1f
Issue-ID: POLICY-2828
Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
models-interactions/model-actors/actor.cds/src/test/resources/org/onap/policy/simulators/cds/my_artifact-subscribe.json [new file with mode: 0644]
models-interactions/model-simulators/src/main/java/org/onap/policy/simulators/CdsSimulator.java
models-interactions/model-simulators/src/test/java/org/onap/policy/simulators/CdsSimulatorTest.java