Add a DMaaP simulator 29/26329/2
authorCharles Cole <cc847m@att.com>
Thu, 14 Dec 2017 14:59:26 +0000 (08:59 -0600)
committerCharles Cole <cc847m@att.com>
Thu, 14 Dec 2017 20:58:16 +0000 (14:58 -0600)
commitc8e0ec698ab687e81654b7cde3ce9ae4118de87e
treefc4f437523ecefc8fe961328f978c102964f2867
parent4884099eff44975eee57e6748823ff73f965e332
Add a DMaaP simulator

Added a DMaaP simulator for testing applications.  One current
limitation is that the simulator does not support multiple "subscribers"
on the same topic; if someone gets a message, that message cannot be
subsequently retrieved by anyone else.  The simulator has also not been
tested for concurrent getting and posting.

Also added a way to set the response code DMaaP would return for a get
to test that policy can gracefully handle errors.

It may need some work to become truely its own "feature"

Issue-ID: POLICY-489
Change-Id: I524981bdf5e4e825f13e6197dda11d9498e4f4bf
Signed-off-by: Charles Cole <cc847m@att.com>
feature-simulators/pom.xml [new file with mode: 0644]
feature-simulators/src/main/java/org/onap/policy/drools/simulators/DMaaPSimulatorJaxRs.java [new file with mode: 0644]
feature-simulators/src/test/java/org/onap/policy/drools/simulators/DMaaPSimulatorTest.java [new file with mode: 0644]
pom.xml