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>
# ============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.
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
* 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.
<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>
<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>
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;
}
@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();
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() {