From 2d1ff45128b53b91c18dff7851f7374aa347d07f Mon Sep 17 00:00:00 2001 From: devplant Date: Wed, 5 Apr 2023 09:40:29 +0300 Subject: [PATCH] RED-5694 - Upgrade spring-boot to 3.0 - upgrade the platform-dependency and platform-common-dependency from upgrade to spring boot 3.0.4 - add @AutoConfigureObservability to solve the prometheus problem --- redaction-report-service-v1/pom.xml | 4 ++-- .../report/v1/server/RedactionReportV2IntegrationTest.java | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/redaction-report-service-v1/pom.xml b/redaction-report-service-v1/pom.xml index fc4130e..802e7de 100644 --- a/redaction-report-service-v1/pom.xml +++ b/redaction-report-service-v1/pom.xml @@ -7,7 +7,7 @@ com.iqser.red platform-dependency - 2.0-SNAPSHOT + 2.2.0 @@ -33,7 +33,7 @@ com.iqser.red platform-commons-dependency - 2.0-SNAPSHOT + 2.1.0 import pom diff --git a/redaction-report-service-v1/redaction-report-service-server-v1/src/test/java/com/iqser/red/service/redaction/report/v1/server/RedactionReportV2IntegrationTest.java b/redaction-report-service-v1/redaction-report-service-server-v1/src/test/java/com/iqser/red/service/redaction/report/v1/server/RedactionReportV2IntegrationTest.java index 00d7564..9e5178d 100644 --- a/redaction-report-service-v1/redaction-report-service-server-v1/src/test/java/com/iqser/red/service/redaction/report/v1/server/RedactionReportV2IntegrationTest.java +++ b/redaction-report-service-v1/redaction-report-service-server-v1/src/test/java/com/iqser/red/service/redaction/report/v1/server/RedactionReportV2IntegrationTest.java @@ -20,6 +20,7 @@ import org.springframework.amqp.rabbit.core.RabbitTemplate; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.autoconfigure.EnableAutoConfiguration; import org.springframework.boot.autoconfigure.amqp.RabbitAutoConfiguration; +import org.springframework.boot.test.autoconfigure.actuate.observability.AutoConfigureObservability; import org.springframework.boot.test.context.SpringBootTest; import org.springframework.boot.test.mock.mockito.MockBean; import org.springframework.context.annotation.Bean; @@ -69,6 +70,7 @@ import lombok.extern.slf4j.Slf4j; @ExtendWith(SpringExtension.class) @Import(RedactionReportV2IntegrationTest.TestConfiguration.class) @SpringBootTest(classes = Application.class, webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT) +@AutoConfigureObservability public class RedactionReportV2IntegrationTest { @MockBean