Uplift from ONAP 92/10692/1
authorPatrikBuhr <patrik.buhr@est.tech>
Wed, 8 Mar 2023 08:36:03 +0000 (09:36 +0100)
committerPatrikBuhr <patrik.buhr@est.tech>
Wed, 8 Mar 2023 08:36:03 +0000 (09:36 +0100)
Stepping to springboot 3
Using Java 17

Signed-off-by: PatrikBuhr <patrik.buhr@est.tech>
Issue-ID: NONRTRIC-743
Change-Id: I809a592cfe0465c270fa3e1f06424e8e51cbdb5a

README.md
config/README
config/application.yaml
docs/overview.rst
dpo/blueprints/k8s-policy-agent.yaml
onap/oran
pom.xml

index d660df9..f773ff0 100644 (file)
--- a/README.md
+++ b/README.md
@@ -41,10 +41,6 @@ To Run Policy Agent in Local:
 In the folder /opt/app/policy-agent/config/, create a soft link with below command,
 ln -s <path to test_application_configuration.json> application_configuration.json
 
-To Run Policy Agent in Local with the DMaaP polling turned on:
-In the folder /opt/app/policy-agent/config/, create a soft link with below command,
-ln -s <path to test_application_configuration_with_dmaap_config.json> application_configuration.json
-
 The agent can be run stand alone in a simulated test mode. Then it simulates RICs.
 The REST API is published on port 8081 and it is started by command:
 mvn -Dtest=MockPolicyAgent test
@@ -52,31 +48,6 @@ mvn -Dtest=MockPolicyAgent test
 The backend server publishes live API documentation at the
 URL `http://your-host-name-here:8081/swagger-ui.html`
 
-PolicyAgent uses A1-POLICY-AGENT-READ & A1-POLICY-AGENT-WRITE topic for subscribe & Publish to the DMaap.
-Sample Request Message to DMaaP:
-{
-  "type": "request",
-  "target": "policy-agent",
-  "timestamp": "2019-05-14T11:44:51.36Z",
-  "operation": "GET",
-  "correlationId": "c09ac7d1-de62-0016-2000-e63701125557-201",
-  "apiVersion": "1.0",
-  "originatorId": "849e6c6b420",
-  "requestId": "23343221",
-  "url": "/policies?type=type1&ric=ric1&service=service1"
-}
-
-Sample Response Message to DMaaP:
-{
-  "type": "response",
-  "timestamp": "2019-05-14T11:44:51.36Z",
-  "correlationId": "c09ac7d1-de62-0016-2000-e63701125557-201",
-  "originatorId": "849e6c6b420",
-  "requestId": "23343221",
-  "status": "200 OK",
-  "message": []
-}
-
 ## License
 
 Copyright (C) 2019 Nordix Foundation. All rights reserved.
index 42e0b7b..38d4f3d 100644 (file)
@@ -29,7 +29,7 @@ keytool -list -v -keystore truststore.jks -storepass policy_agent
 ## License
 
 ONAP : ccsdk oran
-Copyright (C) 2020 Nordix Foundation. All rights reserved.
+Copyright (C) 2020-2023 Nordix Foundation. All rights reserved.
 Licensed under the Apache License, Version 2.0 (the "License");
 you may not use this file except in compliance with the License.
 You may obtain a copy of the License at
index 8f37aaa..44e0b07 100644 (file)
@@ -2,7 +2,7 @@
 # ============LICENSE_START=======================================================
 # ONAP : ccsdk oran
 # ================================================================================
-# Copyright (C) 2020 Nordix Foundation. All rights reserved.
+# Copyright (C) 2020-2023 Nordix Foundation. All rights reserved.
 # ================================================================================
 # Licensed under the Apache License, Version 2.0 (the "License");
 # you may not use this file except in compliance with the License.
index 3c66a81..018b7b4 100644 (file)
@@ -7,12 +7,6 @@ A1 Policy Management Service (from ONAP CCSDK)
 
 A1 Controller Service above A1 Controller/Adaptor that provides:
 
-* Unified REST & DMaaP NBI APIs for managing A1 Policies in all near-RT-RICs.
-
-  + Query A1 Policy Types in near-RT-RICs.
-  + Create/Query/Update/Delete A1 Policy Instances in near-RT-RICs.
-  + Query Status for A1 Policy Instances.
-
 * Maintains (persistent) cache of RAN's A1 Policy information.
 
   * Support RAN-wide view of A1 Policy information.
index 477948d..4d4309b 100644 (file)
@@ -75,16 +75,6 @@ node_templates:
               get_input: envs
     properties:
       application_config:
-        streams_publishes:
-          dmaap_publisher:
-            dmaap_info:
-              topic_url: { concat: ['https://message-router:3905/events/',{ get_input: publish_topic_name }] }
-            type: message_router
-        streams_subscribes:
-          dmaap_subscriber:
-            dmaap_info:
-              topic_url: { concat: ['https://message-router:3905/events/',{ get_input: subscribe_topic_name }, '/', { get_input: consumer_group }, "/", { get_input: consumer_id }, "?timeout=15000&limit=100"] }
-            type: message_router
         ric:
           - name: ric1
             baseUrl: http://localhost:8083/
@@ -103,7 +93,7 @@ node_templates:
           type: http
           endpoint: /status
         ports:
-          - concat: ["8081", {get_input: external_port}]
+          - concat: ["8081", { get_input: external_port }]
       image:
         get_input: tag_version
       service_component_type: policy-agent
@@ -123,5 +113,3 @@ node_templates:
             get_input: policy-agent_cpu_request
           memory:
             get_input: policy-agent_memory_request
-
-
index 1c317eb..62abcd8 160000 (submodule)
--- a/onap/oran
+++ b/onap/oran
@@ -1 +1 @@
-Subproject commit 1c317ebe1323f5f749adad062ec3486612ef7a25
+Subproject commit 62abcd8a852595e8d2e32154708f962a8fa8d4a2
diff --git a/pom.xml b/pom.xml
index 859842b..84f8365 100644 (file)
--- a/pom.xml
+++ b/pom.xml
 <project
     xmlns="http://maven.apache.org/POM/4.0.0"
     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-       xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
+    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
     <modelVersion>4.0.0</modelVersion>
     <parent>
         <groupId>org.springframework.boot</groupId>
         <artifactId>spring-boot-starter-parent</artifactId>
-        <version>2.7.7</version>
+        <version>3.0.4</version>
         <relativePath />
     </parent>
     <groupId>org.o-ran-sc.nonrtric.plt</groupId>
@@ -46,9 +46,7 @@
         </repository>
     </repositories>
     <properties>
-        <java.version>11</java.version>
-        <springfox.version>3.0.0</springfox.version>
-        <swagger.version>2.2.8</swagger.version>
+        <java.version>17</java.version>
         <json.version>20220924</json.version>
         <maven-compiler-plugin.version>3.10.0</maven-compiler-plugin.version>
         <formatter-maven-plugin.version>2.13.0</formatter-maven-plugin.version>
@@ -59,6 +57,7 @@
         <jacoco-maven-plugin.version>0.8.8</jacoco-maven-plugin.version>
         <exec-maven-plugin.version>3.1.0</exec-maven-plugin.version>
         <software.amazon.awssdk.version>2.19.17</software.amazon.awssdk.version>
+        <springdoc.version>2.0.2</springdoc.version>
     </properties>
     <dependencies>
         <dependency>
             <groupId>org.springframework</groupId>
             <artifactId>spring-webflux</artifactId>
         </dependency>
-        <dependency>
-            <groupId>io.swagger.core.v3</groupId>
-            <artifactId>swagger-jaxrs2</artifactId>
-            <version>${swagger.version}</version>
-        </dependency>
-        <dependency>
-            <groupId>io.swagger.core.v3</groupId>
-            <artifactId>swagger-jaxrs2-servlet-initializer</artifactId>
-            <version>${swagger.version}</version>
-        </dependency>
         <dependency>
             <groupId>com.google.code.gson</groupId>
             <artifactId>gson</artifactId>
             <groupId>org.springframework.boot</groupId>
             <artifactId>spring-boot-starter-actuator</artifactId>
         </dependency>
-        <!--REQUIRED TO GENERATE DOCUMENTATION -->
+        <!--REQUIRED
+        TO GENERATE DOCUMENTATION -->
         <dependency>
-            <groupId>io.springfox</groupId>
-            <artifactId>springfox-swagger2</artifactId>
-            <version>${springfox.version}</version>
+            <groupId>org.springdoc</groupId>
+            <artifactId>springdoc-openapi-starter-webmvc-ui</artifactId>
+            <version>${springdoc.version}</version>
         </dependency>
         <dependency>
-            <groupId>io.springfox</groupId>
-            <artifactId>springfox-swagger-ui</artifactId>
-            <version>${springfox.version}</version>
+            <groupId>org.springdoc</groupId>
+            <artifactId>springdoc-openapi-ui</artifactId>
+            <version>${springdoc.version}</version>
         </dependency>
         <!-- TEST -->
         <dependency>
                             <pullRegistry>${env.CONTAINER_PULL_REGISTRY}</pullRegistry>
                             <images>
                                 <image>
-                                    <name>o-ran-sc/nonrtric-plt-a1policymanagementservice:${project.version}</name>
+                                    <name>
+                                        o-ran-sc/nonrtric-plt-a1policymanagementservice:${project.version}</name>
                                     <build>
                                         <cleanup>try</cleanup>
                                         <contextDir>${basedir}</contextDir>
                             <pushRegistry>${env.CONTAINER_PUSH_REGISTRY}</pushRegistry>
                             <images>
                                 <image>
-                                    <name>o-ran-sc/nonrtric-plt-a1policymanagementservice:${project.version}</name>
+                                    <name>
+                                        o-ran-sc/nonrtric-plt-a1policymanagementservice:${project.version}</name>
                                     <build>
                                         <contextDir>${basedir}</contextDir>
                                         <dockerFile>Dockerfile</dockerFile>
         <system>JIRA</system>
         <url>https://jira.o-ran-sc.org/</url>
     </issueManagement>
-</project>
+</project>
\ No newline at end of file