From 6eef01205c39cc155a8b6f5de25a564b44c919f9 Mon Sep 17 00:00:00 2001 From: Eylon Malin Date: Thu, 22 Aug 2019 15:22:17 +0300 Subject: make scheduler client tolerance to error messages Read response from scheduler as String save them as raw, and only then parse them Issue-ID: VID-378 Signed-off-by: Eylon Malin Change-Id: I38ed8f211b2c111b57741254cb5e90317fefdc7d Signed-off-by: Eylon Malin --- vid-automation/src/test/java/org/onap/vid/api/ProbeApiTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'vid-automation/src') diff --git a/vid-automation/src/test/java/org/onap/vid/api/ProbeApiTest.java b/vid-automation/src/test/java/org/onap/vid/api/ProbeApiTest.java index dacee536b..5ed302468 100644 --- a/vid-automation/src/test/java/org/onap/vid/api/ProbeApiTest.java +++ b/vid-automation/src/test/java/org/onap/vid/api/ProbeApiTest.java @@ -142,7 +142,7 @@ public class ProbeApiTest extends BaseApiTest { 200, SCHEDULER_PATH, "this payload is an invalid json", - "javax.ws.rs.ProcessingException" + "com.fasterxml.jackson.core.JsonParseException" ) )) }, @@ -185,7 +185,7 @@ public class ProbeApiTest extends BaseApiTest { 400, SCHEDULER_PATH, "this payload is an invalid json", - "org.apache.http.HttpException: Get with status = 400, url = " + SCHEDULER_PATH + "org.apache.http.HttpException" ) )) } -- cgit 1.2.3-korg