summary |
shortlog |
log |
commit | commitdiff |
review |
tree
raw |
patch |
inline | side by side (from parent 1:
5dbf536)
Issue-ID: NONRTRIC-703
Signed-off-by: elinuxhenrik <henrik.b.andersson@est.tech>
Change-Id: I1eb33db601dbf65931f7bb22a2de63e07ad7e28a
summary: Services
operationId: getServices
responses:
summary: Services
operationId: getServices
responses:
description: Services
content:
application/json:
description: Services
content:
application/json:
type: string
example: DroneIdentifier
responses:
type: string
example: DroneIdentifier
responses:
description: Service
content:
application/json:
schema:
$ref: '#/components/schemas/service'
description: Service
content:
application/json:
schema:
$ref: '#/components/schemas/service'
description: Service is not found
content:
application/json:
description: Service is not found
content:
application/json:
$ref: '#/components/schemas/inputService'
required: true
responses:
$ref: '#/components/schemas/inputService'
required: true
responses:
description: Service updated
description: Service updated
description: Service created
headers:
Location:
description: Service created
headers:
Location:
explode: false
schema:
type: string
explode: false
schema:
type: string
description: Provided service is not correct
content:
application/json:
schema:
$ref: '#/components/schemas/error_information'
example:
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:
status: 400
deprecated: false
delete:
type: string
example: DroneIdentifier
responses:
type: string
example: DroneIdentifier
responses:
description: Service deleted
deprecated: false
components:
description: Service deleted
deprecated: false
components:
<parent>\r
<groupId>org.springframework.boot</groupId>\r
<artifactId>spring-boot-starter-parent</artifactId>\r
<parent>\r
<groupId>org.springframework.boot</groupId>\r
<artifactId>spring-boot-starter-parent</artifactId>\r
- <version>2.3.4.RELEASE</version>\r
+ <version>2.6.2</version>\r
<relativePath />\r
</parent>\r
<groupId>org.o-ran-sc.nonrtric</groupId>\r
<relativePath />\r
</parent>\r
<groupId>org.o-ran-sc.nonrtric</groupId>\r
<swagger-annotations.version>1.5.22</swagger-annotations.version>\r
<springfox.version>2.9.2</springfox.version>\r
<jackson-databind-nullable.version>0.2.1</jackson-databind-nullable.version>\r
<swagger-annotations.version>1.5.22</swagger-annotations.version>\r
<springfox.version>2.9.2</springfox.version>\r
<jackson-databind-nullable.version>0.2.1</jackson-databind-nullable.version>\r
- <openapi-generator-maven-plugin.version>4.3.1</openapi-generator-maven-plugin.version>\r
- <swagger-codegen-maven-plugin.version>3.0.11</swagger-codegen-maven-plugin.version>\r
+ <openapi-generator-maven-plugin.version>5.3.1</openapi-generator-maven-plugin.version>\r
+ <swagger-codegen-maven-plugin.version>3.0.31</swagger-codegen-maven-plugin.version>\r
<formatter-maven-plugin.version>2.12.2</formatter-maven-plugin.version>\r
<spotless-maven-plugin.version>1.24.3</spotless-maven-plugin.version>\r
<jacoco-maven-plugin.version>0.8.6</jacoco-maven-plugin.version>\r
<formatter-maven-plugin.version>2.12.2</formatter-maven-plugin.version>\r
<spotless-maven-plugin.version>1.24.3</spotless-maven-plugin.version>\r
<jacoco-maven-plugin.version>0.8.6</jacoco-maven-plugin.version>\r
</plugin>\r
</plugins>\r
</build>\r
</plugin>\r
</plugins>\r
</build>\r
-</project>
\ No newline at end of file
package org.oransc.rappcatalogue;
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;
import javax.net.ssl.SSLContext;
import org.apache.http.conn.ssl.SSLConnectionSocketFactory;
import org.apache.http.impl.client.HttpClients;
import org.apache.http.ssl.SSLContextBuilder;
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;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.http.ResponseEntity;
import org.springframework.http.client.HttpComponentsClientHttpRequestFactory;
import org.springframework.test.context.TestPropertySource;
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;
import org.springframework.util.ResourceUtils;
import org.springframework.web.client.ResourceAccessException;
-@RunWith(SpringRunner.class)
+@ExtendWith(SpringExtension.class)
@SpringBootTest(webEnvironment = WebEnvironment.RANDOM_PORT)
@TestPropertySource(
properties = { //
@SpringBootTest(webEnvironment = WebEnvironment.RANDOM_PORT)
@TestPropertySource(
properties = { //