From fd112727637454135c8ec80a8455ed0b6db3e948 Mon Sep 17 00:00:00 2001 From: Fiete Ostkamp Date: Fri, 8 Nov 2024 14:23:49 +0100 Subject: Upgrade spring boot to 2.6 - upgrade spring-boot (2.5.15 -> 2.6.15) - upgrade vulnerable guava (25 -> 33.3.1), janino (3.1.9 -> 3.1.12) and commons-configuration2 (2.0 -> 2.11.0) dependencies Issue-ID: AAI-4048 Change-Id: I88fb4b9752bc05bdada5a8e4944b6cd0489383ce Signed-off-by: Fiete Ostkamp --- aai-resources/pom.xml | 16 ++++++++-------- aai-resources/src/main/resources/application.properties | 2 ++ .../test/java/org/onap/aai/rest/ConfigurationTest.java | 1 - pom.xml | 4 ++-- 4 files changed, 12 insertions(+), 11 deletions(-) diff --git a/aai-resources/pom.xml b/aai-resources/pom.xml index 677f8a7..ddfc848 100644 --- a/aai-resources/pom.xml +++ b/aai-resources/pom.xml @@ -93,7 +93,7 @@ true 1.6.8 - 2020.0.6 + 2021.0.9 @@ -359,11 +359,6 @@ swagger-annotations ${swagger.version} - - org.apache.commons - commons-configuration2 - 2.0 - io.swagger swagger-jersey2-jaxrs @@ -423,6 +418,7 @@ org.codehaus.janino janino + 3.1.12 net.logstash.logback @@ -500,7 +496,6 @@ org.springframework.kafka spring-kafka - 2.7.14 com.jayway.jsonpath @@ -708,7 +703,7 @@ com.google.guava guava - 25.0-jre + 33.3.1-jre @@ -727,6 +722,11 @@ ${datastax.native-protocol.version} + + org.apache.commons + commons-configuration2 + 2.11.0 + diff --git a/aai-resources/src/main/resources/application.properties b/aai-resources/src/main/resources/application.properties index 204197c..b79af16 100644 --- a/aai-resources/src/main/resources/application.properties +++ b/aai-resources/src/main/resources/application.properties @@ -65,6 +65,8 @@ spring.kafka.producer.value-serializer=org.apache.kafka.common.serialization.Str spring.kafka.producer.properties.sasl.jaas.config = ${JAAS_CONFIG} spring.kafka.producer.retries=3 +management.info.env.enabled=true + # Schema related attributes for the oxm and edges # Any additional schema related attributes should start with prefix schema schema.configuration.location=N/A diff --git a/aai-resources/src/test/java/org/onap/aai/rest/ConfigurationTest.java b/aai-resources/src/test/java/org/onap/aai/rest/ConfigurationTest.java index b780d90..15c03cf 100644 --- a/aai-resources/src/test/java/org/onap/aai/rest/ConfigurationTest.java +++ b/aai-resources/src/test/java/org/onap/aai/rest/ConfigurationTest.java @@ -185,7 +185,6 @@ public class ConfigurationTest extends AbstractSpringRestTest { responseBody = (String) responseEntity.getBody(); assertEquals(HttpStatus.OK, responseEntity.getStatusCode()); assertTrue(responseBody.contains("group_id")); - assertTrue(responseBody.contains("aai_uri")); // Set Accept as MediaType.APPLICATION_JSON in order to get access of endpoint // "/actuator/info" and diff --git a/pom.xml b/pom.xml index 96db9dc..e9efd2d 100644 --- a/pom.xml +++ b/pom.xml @@ -26,7 +26,7 @@ org.onap.aai.aai-common aai-parent - 1.15.1 + 1.15.2 org.onap.aai.resources resources @@ -49,7 +49,7 @@ /content/repositories/staging/ ${project.version} - 1.15.1 + 1.15.2 1.12.5 -- cgit 1.2.3-korg