Add timeout to SO to wait for success 59/37159/5
authorliamfallon <liam.fallon@ericsson.com>
Tue, 20 Mar 2018 15:30:17 +0000 (15:30 +0000)
committerliamfallon <liam.fallon@ericsson.com>
Sun, 25 Mar 2018 12:40:28 +0000 (13:40 +0100)
commit7150a5f7027725b5eed9c723c6224c8b3d5307dd
treee89e9be3d6155b1f47fd5c6d76c5b6c78ae4ef5b
parentc9f47efdffe00fc5f823b1c982e6b12d92f90276
Add timeout to SO to wait for success

The timeout implementation assumes that a finished request is a HTTP-200
together with either a request state of COMPLETE or FAILED in the embedded
request in the response in the JSON. This is the same as what is done earlier
in this class and in, for example, VFC.

Unit test for timeout has also been added.

Change-Id: I637dbecb8d230b8060f7ced76d92d11ec482503e
Issue-ID: POLICY-448
Signed-off-by: liamfallon <liam.fallon@ericsson.com>
controlloop/common/model-impl/so/pom.xml
controlloop/common/model-impl/so/src/main/java/org/onap/policy/so/SOManager.java
controlloop/common/model-impl/so/src/test/java/org/onap/policy/so/DummyWorkingMemory.java [new file with mode: 0644]
controlloop/common/model-impl/so/src/test/java/org/onap/policy/so/TestSOManager.java
controlloop/common/model-impl/so/src/test/java/org/onap/policy/so/TestSoDummyServer.java [new file with mode: 0644]
controlloop/common/simulators/pom.xml
controlloop/common/simulators/src/main/java/org/onap/policy/simulators/SoSimulatorJaxRs.java
controlloop/templates/archetype-cl-amsterdam/src/main/resources/archetype-resources/src/main/config/so.success.json