diff options
author | 2018-03-20 15:30:17 +0000 | |
---|---|---|
committer | 2018-03-25 13:40:28 +0100 | |
commit | 7150a5f7027725b5eed9c723c6224c8b3d5307dd (patch) | |
tree | e89e9be3d6155b1f47fd5c6d76c5b6c78ae4ef5b /controlloop/templates/archetype-cl-amsterdam/src/main | |
parent | c9f47efdffe00fc5f823b1c982e6b12d92f90276 (diff) |
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>
Diffstat (limited to 'controlloop/templates/archetype-cl-amsterdam/src/main')
-rw-r--r-- | controlloop/templates/archetype-cl-amsterdam/src/main/resources/archetype-resources/src/main/config/so.success.json | 10 |
1 files changed, 9 insertions, 1 deletions
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 +} |