From c5b6948e2a6fe657134de0d26385470c8803655f Mon Sep 17 00:00:00 2001 From: elinuxhenrik Date: Mon, 10 Jan 2022 16:30:15 +0100 Subject: [PATCH] Migrate to springboot 2.6.2 Issue-ID: NONRTRIC-703 Signed-off-by: elinuxhenrik Change-Id: I1eb33db601dbf65931f7bb22a2de63e07ad7e28a --- r-app-catalogue/api/rac-api.yaml | 16 ++++++++-------- r-app-catalogue/pom.xml | 8 ++++---- .../java/org/oransc/rappcatalogue/HttpsRequestTest.java | 14 +++++++------- 3 files changed, 19 insertions(+), 19 deletions(-) diff --git a/r-app-catalogue/api/rac-api.yaml b/r-app-catalogue/api/rac-api.yaml index 748cf2b4..9ba6c398 100644 --- a/r-app-catalogue/api/rac-api.yaml +++ b/r-app-catalogue/api/rac-api.yaml @@ -14,7 +14,7 @@ paths: summary: Services operationId: getServices responses: - 200: + "200": description: Services content: application/json: @@ -40,13 +40,13 @@ paths: type: string example: DroneIdentifier responses: - 200: + "200": description: Service content: application/json: schema: $ref: '#/components/schemas/service' - 404: + "404": description: Service is not found content: application/json: @@ -75,9 +75,9 @@ paths: $ref: '#/components/schemas/inputService' required: true responses: - 200: + "200": description: Service updated - 201: + "201": description: Service created headers: Location: @@ -86,14 +86,14 @@ paths: explode: false schema: type: string - 400: + "400": description: Provided service is not correct content: application/json: schema: $ref: '#/components/schemas/error_information' example: - detail: 'Service is missing required property: version' + detail: "Service is missing required property: version" status: 400 deprecated: false delete: @@ -111,7 +111,7 @@ paths: type: string example: DroneIdentifier responses: - 204: + "204": description: Service deleted deprecated: false components: diff --git a/r-app-catalogue/pom.xml b/r-app-catalogue/pom.xml index 5da52d34..67be912a 100644 --- a/r-app-catalogue/pom.xml +++ b/r-app-catalogue/pom.xml @@ -26,7 +26,7 @@ org.springframework.boot spring-boot-starter-parent - 2.3.4.RELEASE + 2.6.2 org.o-ran-sc.nonrtric @@ -43,8 +43,8 @@ 1.5.22 2.9.2 0.2.1 - 4.3.1 - 3.0.11 + 5.3.1 + 3.0.31 2.12.2 1.24.3 0.8.6 @@ -328,4 +328,4 @@ - \ No newline at end of file + diff --git a/r-app-catalogue/src/test/java/org/oransc/rappcatalogue/HttpsRequestTest.java b/r-app-catalogue/src/test/java/org/oransc/rappcatalogue/HttpsRequestTest.java index 9b943df1..8a66e14b 100644 --- a/r-app-catalogue/src/test/java/org/oransc/rappcatalogue/HttpsRequestTest.java +++ b/r-app-catalogue/src/test/java/org/oransc/rappcatalogue/HttpsRequestTest.java @@ -18,9 +18,9 @@ package org.oransc.rappcatalogue; -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertThrows; -import static org.junit.Assert.assertTrue; +import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.junit.jupiter.api.Assertions.assertThrows; +import static org.junit.jupiter.api.Assertions.assertTrue; import javax.net.ssl.SSLContext; @@ -28,8 +28,8 @@ import org.apache.http.client.HttpClient; import org.apache.http.conn.ssl.SSLConnectionSocketFactory; import org.apache.http.impl.client.HttpClients; import org.apache.http.ssl.SSLContextBuilder; -import org.junit.Test; -import org.junit.runner.RunWith; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.extension.ExtendWith; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Value; import org.springframework.boot.test.context.SpringBootTest; @@ -43,11 +43,11 @@ import org.springframework.http.HttpStatus; import org.springframework.http.ResponseEntity; import org.springframework.http.client.HttpComponentsClientHttpRequestFactory; import org.springframework.test.context.TestPropertySource; -import org.springframework.test.context.junit4.SpringRunner; +import org.springframework.test.context.junit.jupiter.SpringExtension; import org.springframework.util.ResourceUtils; import org.springframework.web.client.ResourceAccessException; -@RunWith(SpringRunner.class) +@ExtendWith(SpringExtension.class) @SpringBootTest(webEnvironment = WebEnvironment.RANDOM_PORT) @TestPropertySource( properties = { // -- 2.16.6