From: Fiete Ostkamp Date: Fri, 14 Feb 2025 10:50:24 +0000 (+0100) Subject: Reenable tests for the so-api-handler-infra and mso-requests-db modules X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=10a8e53d4f40b0948f9dd8bedc80a671e973cb8a;p=so.git Reenable tests for the so-api-handler-infra and mso-requests-db modules - exception message that is asserted in test likely changed due to version update of the org.json dependency that was done in the meantime Issue-ID: SO-4138 Change-Id: I48499cccc40f7c01e3d3f14def6301c8a6486cc1 Signed-off-by: Fiete Ostkamp --- diff --git a/mso-api-handlers/mso-api-handler-infra/pom.xml b/mso-api-handlers/mso-api-handler-infra/pom.xml index 64728a9615..be58227c7a 100644 --- a/mso-api-handlers/mso-api-handler-infra/pom.xml +++ b/mso-api-handlers/mso-api-handler-infra/pom.xml @@ -110,6 +110,11 @@ spring-boot-starter-test test + + org.junit.vintage + junit-vintage-engine + test + org.springframework.boot spring-boot-configuration-processor diff --git a/mso-api-handlers/mso-api-handler-infra/src/test/java/org/onap/so/apihandlerinfra/tenantisolation/helpers/SDCClientHelperTest.java b/mso-api-handlers/mso-api-handler-infra/src/test/java/org/onap/so/apihandlerinfra/tenantisolation/helpers/SDCClientHelperTest.java index 063902152c..391d1909c1 100644 --- a/mso-api-handlers/mso-api-handler-infra/src/test/java/org/onap/so/apihandlerinfra/tenantisolation/helpers/SDCClientHelperTest.java +++ b/mso-api-handlers/mso-api-handler-infra/src/test/java/org/onap/so/apihandlerinfra/tenantisolation/helpers/SDCClientHelperTest.java @@ -79,7 +79,7 @@ public class SDCClientHelperTest extends BaseTest { assertEquals("500", jsonResponse.get("statusCode")); assertEquals("", jsonResponse.get("messageId")); assertEquals( - " Encountered Error while calling SDC POST Activate. JSONObject[\"requestError\"] is not a JSONObject.", + " Encountered Error while calling SDC POST Activate. JSONObject[\"requestError\"] is not a JSONObject (class java.lang.String : ).", jsonResponse.get("message")); } diff --git a/mso-api-handlers/mso-requests-db/pom.xml b/mso-api-handlers/mso-requests-db/pom.xml index 886e27e3e1..77f03c029e 100644 --- a/mso-api-handlers/mso-requests-db/pom.xml +++ b/mso-api-handlers/mso-requests-db/pom.xml @@ -24,6 +24,11 @@ spring-boot-starter-test test + + org.junit.vintage + junit-vintage-engine + test + org.glassfish.jersey.core jersey-common