diff options
author | Ittay Stern <ittay.stern@att.com> | 2020-01-15 19:52:33 +0200 |
---|---|---|
committer | Ittay Stern <ittay.stern@att.com> | 2020-01-15 19:52:33 +0200 |
commit | a46f5b6345622acd863ea41b61b607b847732151 (patch) | |
tree | 6f80e517c1ee2d7bc39f9a68a8aeb81381631dea /vid-app-common/src/test/java/org/onap/vid/services/AsyncInstantiationBusinessLogicTest.java | |
parent | 9dab9fa0a02e19123149e2fe661ec61cac955120 (diff) |
Async MSO error format: handle more cases
Try better not to fallback to "Http Code:400, null"
Notably, handle the case where "serviceException" is inside a "requestError"
container.
Issue-ID: VID-749
Change-Id: I3c7d609aed893bbbeb71ebe4b465289c71e5c32b
Signed-off-by: Ittay Stern <ittay.stern@att.com>
Diffstat (limited to 'vid-app-common/src/test/java/org/onap/vid/services/AsyncInstantiationBusinessLogicTest.java')
-rw-r--r-- | vid-app-common/src/test/java/org/onap/vid/services/AsyncInstantiationBusinessLogicTest.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/vid-app-common/src/test/java/org/onap/vid/services/AsyncInstantiationBusinessLogicTest.java b/vid-app-common/src/test/java/org/onap/vid/services/AsyncInstantiationBusinessLogicTest.java index 0749aaf82..a1e4af2c4 100644 --- a/vid-app-common/src/test/java/org/onap/vid/services/AsyncInstantiationBusinessLogicTest.java +++ b/vid-app-common/src/test/java/org/onap/vid/services/AsyncInstantiationBusinessLogicTest.java @@ -1223,7 +1223,8 @@ public class AsyncInstantiationBusinessLogicTest extends AsyncInstantiationBaseT String message = "Failed to create service instance"; return new Object[][]{ {500, message}, - {199, "{\"serviceException\":{\"messageId\":\"SVC2000\",\"text\":\"Error: " + message + "\"}}"} + {400, "{\"requestError\":{\"serviceException\":{\"messageId\":\"SVC0002\",\"text\":\"" + message + "\"}}}"}, + {199, "{\"serviceException\":{\"messageId\":\"SVC2000\",\"text\":\"Error: " + message + "\"}}"}, }; } |