diff options
author | lapentafd <francesco.lapenta@est.tech> | 2024-08-19 17:43:27 +0100 |
---|---|---|
committer | lapentafd <francesco.lapenta@est.tech> | 2024-08-19 17:43:31 +0100 |
commit | 25dd05d540947c7bc7fd7c146517314378bdcce3 (patch) | |
tree | 6a46a6aa36a616888004e062a8c354ce6b64e650 | |
parent | a1d0a4a7f3eca233f76e041ad5cc3f78ff0f7a53 (diff) |
Enable springboot test for AsyncRestClientTest
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>
-rw-r--r-- | a1-policy-management/src/test/java/org/onap/ccsdk/oran/a1policymanagementservice/clients/AsyncRestClientTest.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/a1-policy-management/src/test/java/org/onap/ccsdk/oran/a1policymanagementservice/clients/AsyncRestClientTest.java b/a1-policy-management/src/test/java/org/onap/ccsdk/oran/a1policymanagementservice/clients/AsyncRestClientTest.java index ac9d1fba..555f4639 100644 --- a/a1-policy-management/src/test/java/org/onap/ccsdk/oran/a1policymanagementservice/clients/AsyncRestClientTest.java +++ b/a1-policy-management/src/test/java/org/onap/ccsdk/oran/a1policymanagementservice/clients/AsyncRestClientTest.java @@ -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"; |