Spring Boot version upgraded to 3.5.5 70/14770/6
authoraravind.est <aravindhan.a@est.tech>
Thu, 4 Sep 2025 15:22:42 +0000 (16:22 +0100)
committerJohn Keeney <john.keeney@est.tech>
Fri, 5 Sep 2025 15:13:50 +0000 (15:13 +0000)
Spring boot version upgraded.
Root Log level updated to INFO

Issue-ID: INT-193
Change-Id: Ic9faa5930a2c8a44fa69192b85007f51c12ec27a
Signed-off-by: aravind.est <aravindhan.a@est.tech>
config/application.yaml
pom.xml
src/test/java/org/oransc/ics/ApplicationTest.java

index 966c15d..a109b34 100644 (file)
@@ -1,5 +1,6 @@
 #  ============LICENSE_START===============================================
-#  Copyright (C) 2019-2022 Nordix Foundation. All rights reserved.
+#  Copyright (C) 2019-2023 Nordix Foundation. All rights reserved.
+#  Copyright (C) 2023-2025 OpenInfra Foundation Europe
 #  ========================================================================
 #  Licensed under the Apache License, Version 2.0 (the "License");
 #  you may not use this file except in compliance with the License.
@@ -33,12 +34,14 @@ management:
   endpoint:
     shutdown:
       enabled: true
+    heapdump:
+      enabled: true
 lifecycle:
   timeout-per-shutdown-phase: "20s"
 logging:
   # Configuration of logging
   level:
-    ROOT: ERROR
+    ROOT: INFO
     org.springframework: ERROR
     org.springframework.data: ERROR
     org.springframework.web.reactive.function.client.ExchangeFunctions: ERROR
diff --git a/pom.xml b/pom.xml
index 4ba94d0..1ba6fc8 100644 (file)
--- a/pom.xml
+++ b/pom.xml
@@ -4,7 +4,7 @@
 * O-RAN-SC
 * %%
 * Copyright (C) 2019-2023 Nordix Foundation. All rights reserved.
-* Copyright (C) 2023 OpenInfra Foundation Europe. All rights reserved.
+* Copyright (C) 2023-2025 OpenInfra Foundation Europe. All rights reserved.
 * %%
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
@@ -27,7 +27,7 @@
     <parent>
         <groupId>org.springframework.boot</groupId>
         <artifactId>spring-boot-starter-parent</artifactId>
-        <version>3.2.0</version>
+        <version>3.5.5</version>
         <relativePath />
     </parent>
     <groupId>org.o-ran-sc.nonrtric.plt</groupId>
@@ -59,6 +59,7 @@
         <jacoco-maven-plugin.version>0.8.8</jacoco-maven-plugin.version>
         <springdoc.version>2.0.2</springdoc.version>
         <springdoc.openapi-ui.version>1.6.14</springdoc.openapi-ui.version>
+        <mockwebserver.version>5.1.0</mockwebserver.version>
         <exec.skip>true</exec.skip>
     </properties>
     <dependencies>
         <dependency>
             <groupId>com.squareup.okhttp3</groupId>
             <artifactId>mockwebserver</artifactId>
+            <version>${mockwebserver.version}</version>
             <scope>test</scope>
         </dependency>
     </dependencies>
index a0d39b5..8c60f51 100644 (file)
@@ -98,8 +98,8 @@ import org.springframework.http.HttpStatus;
 import org.springframework.http.HttpStatusCode;
 import org.springframework.http.MediaType;
 import org.springframework.http.ResponseEntity;
+import org.springframework.test.annotation.DirtiesContext;
 import org.springframework.test.context.TestPropertySource;
-import org.springframework.web.reactive.function.client.WebClientRequestException;
 import org.springframework.web.reactive.function.client.WebClientResponseException;
 
 import reactor.core.publisher.Mono;
@@ -1332,8 +1332,9 @@ class ApplicationTest {
     }
 
     @Test
+    @DirtiesContext
     @SuppressWarnings("squid:S2925") // "Thread.sleep" should not be used in tests.
-    void testZZActuator() throws Exception {
+    void testZZActuator() {
         // The test must be run last, hence the "ZZ" in the name. All succeeding tests
         // will fail.
         AsyncRestClient client = restClient();
@@ -1342,13 +1343,8 @@ class ApplicationTest {
         assertThat(resp).contains("TRACE");
         client.post("/actuator/loggers/org.springframework.boot.actuate", "{\"configuredLevel\":\"trace\"}").block();
         // This will stop the web server and all coming tests will fail.
-        client.post("/actuator/shutdown", "").block();
-        Thread.sleep(1000);
-
-        StepVerifier.create(restClient().get(ConsumerConsts.API_ROOT + "/info-jobs")) // Any call
-            .expectSubscription() //
-            .expectErrorMatches(WebClientRequestException.class::isInstance) //
-            .verify();
+        String shutdownResponse = client.post("/actuator/shutdown", "").block();
+        assertThat(shutdownResponse).contains("Shutting down");
     }
 
     private String typeSubscriptionUrl() {