From 7150a5f7027725b5eed9c723c6224c8b3d5307dd Mon Sep 17 00:00:00 2001 From: liamfallon Date: Tue, 20 Mar 2018 15:30:17 +0000 Subject: 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 --- .../archetype-resources/src/main/config/so.success.json | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'controlloop/templates') diff --git a/controlloop/templates/archetype-cl-amsterdam/src/main/resources/archetype-resources/src/main/config/so.success.json b/controlloop/templates/archetype-cl-amsterdam/src/main/resources/archetype-resources/src/main/config/so.success.json index 8f3387e4d..6d617b4bf 100644 --- a/controlloop/templates/archetype-cl-amsterdam/src/main/resources/archetype-resources/src/main/config/so.success.json +++ b/controlloop/templates/archetype-cl-amsterdam/src/main/resources/archetype-resources/src/main/config/so.success.json @@ -3,5 +3,13 @@ "instanceId": "ff305d54-75b4-ff1b-bdb2-eb6b9e5460ff", "requestId": "e4f95e0c-a013-4530-8e59-c5c5f9e539b6" }, + "request": { + "requestId": "e4f95e0c-a013-4530-8e59-c5c5f9e539b6", + "requestStatus": { + "percentProgress": 100, + "requestState": "COMPLETE", + "wasRolledBack": false + } + }, "httpResponseCode": 200 -} \ No newline at end of file +} -- cgit 1.2.3-korg