Cannot parse finishTime in SO responses 50/107750/2
authorJim Hahn <jrh3@att.com>
Fri, 15 May 2020 13:52:35 +0000 (09:52 -0400)
committerJim Hahn <jrh3@att.com>
Fri, 15 May 2020 15:53:17 +0000 (11:53 -0400)
commitafe5abed95c6cbfe239066e267d9c10a71f20623
tree89325042e014a2685d54d7cce13f26bb4bfde6b1
parent4e50a58565461839df6a1fe65f571a04b2404616
Cannot parse finishTime in SO responses

The timestamp in SO responses appears to follow RFC-1123/RFC-822
format instead of ISO format.
Added a type adapter for SO.  In Guilin, we may want to consider
combining the two type adapters for LocalDateTime so that either format
is accepted.
Also modified the SO simulator to return responses that are actual
samples from SO.
As part of that work, discovered that the legacy SO actor is not able
to parse these timestamps either.  However, as that code is now
deprecated, left it as is.

Issue-ID: POLICY-2570
Change-Id: I322318d1007e36eef47bb8867fd8ed01cb60223a
Signed-off-by: Jim Hahn <jrh3@att.com>
models-interactions/model-actors/actor.so/src/main/java/org/onap/policy/controlloop/actor/so/SoOperation.java
models-interactions/model-actors/actor.so/src/test/java/org/onap/policy/controlloop/actor/so/BasicSoOperation.java
models-interactions/model-actors/actor.so/src/test/java/org/onap/policy/controlloop/actor/so/SoOperationTest.java
models-interactions/model-simulators/src/main/java/org/onap/policy/simulators/SoSimulatorJaxRs.java
models-interactions/model-simulators/src/main/resources/org/onap/policy/simulators/so/so.complete.success.json [new file with mode: 0644]
models-interactions/model-simulators/src/main/resources/org/onap/policy/simulators/so/so.started.json [new file with mode: 0644]
models-interactions/model-simulators/src/main/resources/org/onap/policy/simulators/so/so.still.running.json [new file with mode: 0644]
models-interactions/model-simulators/src/test/java/org/onap/policy/simulators/SoSimulatorTest.java