Enable springboot test for AsyncRestClientTest 88/138788/1
authorlapentafd <francesco.lapenta@est.tech>
Mon, 19 Aug 2024 16:43:27 +0000 (17:43 +0100)
committerlapentafd <francesco.lapenta@est.tech>
Mon, 19 Aug 2024 16:43:31 +0000 (17:43 +0100)
After enabling telemetry, all tests using AsyncRestClient also need some other Beans provided by Springboot

Issue-ID: CCSDK-4010
Change-Id: I92c0502491789f6807ca80ac559f8494d05d0a6d
Signed-off-by: lapentafd <francesco.lapenta@est.tech>
a1-policy-management/src/test/java/org/onap/ccsdk/oran/a1policymanagementservice/clients/AsyncRestClientTest.java

index ac9d1fb..555f463 100644 (file)
@@ -29,6 +29,7 @@ import org.junit.jupiter.api.AfterAll;
 import org.junit.jupiter.api.BeforeAll;
 import org.junit.jupiter.api.DisplayName;
 import org.junit.jupiter.api.Test;
+import org.springframework.boot.test.context.SpringBootTest;
 import org.springframework.http.HttpHeaders;
 import org.springframework.http.MediaType;
 import org.springframework.web.reactive.function.client.WebClientResponseException;
@@ -40,6 +41,7 @@ import reactor.util.Loggers;
 import okhttp3.mockwebserver.MockResponse;
 import okhttp3.mockwebserver.MockWebServer;
 
+@SpringBootTest
 class AsyncRestClientTest {
     private static final String BASE_URL = "BaseUrl";
     private static final String REQUEST_URL = "/test";