Update ANR API to version 0.0.5 77/177/2
authorLott, Christopher (cl778h) <cl778h@att.com>
Mon, 20 May 2019 10:17:40 +0000 (06:17 -0400)
committerLott, Christopher (cl778h) <cl778h@att.com>
Mon, 20 May 2019 12:47:19 +0000 (08:47 -0400)
Change-Id: Ieb8eb1e6a4bcc4ab0b8c87ba25f4d3f0c88ceb33
Signed-off-by: Lott, Christopher (cl778h) <cl778h@att.com>
.gitignore
anr-xapp-client/pom.xml
anr-xapp-client/src/main/resources/anr_swagger_0.0.5.yaml [moved from anr-xapp-client/src/main/resources/anr_swagger_0.0.4.yaml with 94% similarity]
docs/release-notes.rst
webapp-backend/pom.xml
webapp-backend/src/main/java/org/oransc/ric/portal/dashboard/config/AnrXappMockConfiguration.java
webapp-backend/src/main/java/org/oransc/ric/portal/dashboard/controller/AnrXappController.java

index 5028866..c147df4 100644 (file)
@@ -39,4 +39,7 @@
 /build/
 
 ### visual studio ###
-.vs
\ No newline at end of file
+.vs
+
+# OSx cruft
+**/.DS_Store
index e450c1d..247cff7 100644 (file)
@@ -31,7 +31,7 @@ limitations under the License.
        <groupId>org.o-ran-sc.ric.anrxapp.client</groupId>
        <artifactId>anr-xapp-client</artifactId>
        <name>RIC ANR xApp client</name>
-       <version>0.0.4-SNAPSHOT</version>
+       <version>0.0.5-SNAPSHOT</version>
        <properties>
                <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
                <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
@@ -104,7 +104,7 @@ limitations under the License.
                                                        <goal>generate</goal>
                                                </goals>
                                                <configuration>
-                                                       <inputSpec>${project.basedir}/src/main/resources/anr_swagger_0.0.4.yaml</inputSpec>
+                                                       <inputSpec>${project.basedir}/src/main/resources/anr_swagger_0.0.5.yaml</inputSpec>
                                                        <language>java</language>
                                                        <configOptions>
                                                                <groupId>${project.groupId}</groupId>
@@ -18,7 +18,7 @@
 swagger : '2.0'
 info :
   description : REST API specification for RIC ANR closed xAPP
-  version     : 0.0.4
+  version     : 0.0.5
   title       : RIC ANR
   license:
     name : Nokia Closed App
@@ -31,7 +31,7 @@ paths :
   /health/alive :
     get :
       summary     : Health check of ANR - Liveness probe
-      tags        :
+      tags        : 
         - health
       operationId : getHealthAlive
       responses   :
@@ -40,7 +40,7 @@ paths :
   /health/ready :
     get :
       summary     : Health check of ANR - Readiness probe
-      tags        :
+      tags        : 
         - health
       operationId : getHealthReady
       responses   :
@@ -53,7 +53,7 @@ paths :
       - $ref : '#/parameters/limit'
     get :
       summary     : Returns neighbor cell relation table for all gnodeBs or based on query string
-      tags        :
+      tags        : 
         - ncrt
       operationId : getNcrtInfo
       produces  :
@@ -68,11 +68,9 @@ paths :
   /ncrt/cell/{cellIdentifier} :
     parameters :
       - $ref : '#/parameters/cellIdentifier'
-      - $ref : '#/parameters/neighborCellNrpci'
-      - $ref : '#/parameters/neighborCellNrcgi'
     get :
       summary     : Returns neighbor cell relation table for a Source Cell (NR CGI) and optionally a neighbor cell based on query string
-      tags        :
+      tags        : 
         - ncrt
       operationId : getCellNcrtInfo
       produces  :
@@ -80,6 +78,8 @@ paths :
       parameters :
         - $ref : '#/parameters/startIndex'
         - $ref : '#/parameters/limit'
+        - $ref : '#/parameters/neighborCellNrpci'
+        - $ref : '#/parameters/neighborCellNrcgi'
       responses :
         '200' :
           description : successful operation
@@ -89,7 +89,7 @@ paths :
           description : Non-existant identifier {cellIdentifier | neighborCellNrpci | neighborCellNrcgi} in request
     put :
       summary     : Modify neighbor cell relation based on Source Cell NR CGI and Target Cell NR PCI / NR CGI
-      tags        :
+      tags        : 
         - ncrt
       operationId : modifyNcrt
       consumes   :
@@ -114,7 +114,7 @@ paths :
                         }
     delete :
       summary     : Delete neighbor cell relation based on Source Cell NR CGI and Target Cell NR PCI / NR CGI
-      tags        :
+      tags        : 
         - ncrt
       operationId : deleteNcrt
       parameters :
@@ -123,7 +123,7 @@ paths :
           description : Parameters to delete neighbor cell relation
           required    : true
           schema      :
-            $ref : '#/definitions/neighborCellRelationDelTable'
+            $ref : '#/definitions/neighborCellRelationDelTable'      
       responses :
         '204' :
           description : Successfully deleted neighbor cell relation
@@ -167,8 +167,8 @@ parameters :
 definitions :
   neighborCellRelationTable :
     type : object
-    properties :
-      ncrtRelations :
+    properties : 
+      ncrtRelations : 
         type   : array
         items  :
           $ref : '#/definitions/neighborCellRelation'
@@ -182,11 +182,11 @@ definitions :
       $ref : '#/definitions/neighborCellRelationMod'
   neighborCellRelationDelTable :
     type   : array
-    items  :
+    items  : 
       $ref : '#/definitions/neighborCellRelationDel'
   neighborCellRelation :
     type  : object
-    required :
+    required : 
       - cellIdentifierNrcgi
       - neighborCellNrpci
       - neighborCellNrcgi
@@ -221,10 +221,10 @@ definitions :
   neighborCellRelationMod :
     type      : object
     required  :
-      - neighbourCellIdentifierType
+      - neighborCellIdentifierType
       - action
     properties :
-      neighbourCellIdentifierType :
+      neighborCellIdentifierType :
         type        : string
         description : Neighbor Cell Identifier Type
         enum :
index 7f75207..fa2b460 100644 (file)
 RIC Dashboard Release Notes
 ===========================
 
-Version 1.0.3, 15 May 2019
+Version 1.0.3, 20 May 2019
 --------------------------
 * Add AC xapp controller
 * Add RAN type radio selector to connection setup
-* Update ANR xApp client to spec version 0.0.4
+* Update ANR xApp client to spec version 0.0.5
 * Add get-version methods to all controllers
 * Add simple page footer with copyright and version
 
index f14db0c..ab61db5 100644 (file)
@@ -42,7 +42,7 @@ limitations under the License.
                <dependency>
                        <groupId>org.o-ran-sc.ric.anrxapp.client</groupId>
                        <artifactId>anr-xapp-client</artifactId>
-                       <version>0.0.4-SNAPSHOT</version>
+                       <version>0.0.5-SNAPSHOT</version>
                </dependency>
                <dependency>
                        <groupId>org.o-ran-sc.ric.e2mgr.client</groupId>
index 275f047..1668eb1 100644 (file)
@@ -88,18 +88,16 @@ public class AnrXappMockConfiguration {
                                .addNcrtRelationsItem(e);
 
                when(mockApi.getNcrtInfo(any(String.class), any(String.class), any(Integer.class))).thenReturn(ncrt);
-               when(mockApi.getCellNcrtInfo(any(String.class), any(String.class), any(String.class), any(String.class),
-                               any(Integer.class))).thenReturn(ncrt);
+               when(mockApi.getCellNcrtInfo(any(String.class), any(String.class), any(Integer.class), any(String.class),
+                               any(String.class))).thenReturn(ncrt);
 
                doAnswer(i -> {
                        return null;
-               }).when(mockApi).deleteNcrt(any(String.class), any(NeighborCellRelationDelTable.class), any(String.class),
-                               any(String.class));
+               }).when(mockApi).deleteNcrt(any(String.class), any(NeighborCellRelationDelTable.class));
 
                doAnswer(i -> {
                        return null;
-               }).when(mockApi).modifyNcrt(any(String.class), any(NeighborCellRelationModTable.class), any(String.class),
-                               any(String.class));
+               }).when(mockApi).modifyNcrt(any(String.class), any(NeighborCellRelationModTable.class));
 
                return mockApi;
        }
index 5692c5e..6c0ca4b 100644 (file)
@@ -118,7 +118,7 @@ public class AnrXappController {
                        @RequestParam(name = NRCGI, required = false) String nrcgi) {
                logger.debug("queryNcrtAllCells: cellIdentifier {}, startIndex {} limit {} nrpci {} nrcgi {}", cellIdentifier,
                                startIndex, limit, nrpci, nrcgi);
-               return ncrtApi.getCellNcrtInfo(cellIdentifier,  nrpci, nrcgi, startIndex, limit);
+               return ncrtApi.getCellNcrtInfo(cellIdentifier, startIndex, limit, nrpci, nrcgi);
        }
 
        @ApiOperation(value = "Modify neighbor cell relation based on Source Cell NR CGI and Target Cell NR PCI / NR CGI")
@@ -127,7 +127,7 @@ public class AnrXappController {
                        @RequestBody NeighborCellRelationModTable ncrtModTable, //
                        HttpServletResponse response) {
                logger.debug("modifyNcrt: cellIdentifier {} modTable {}", cellIdentifier, ncrtModTable);
-               ncrtApi.modifyNcrt(cellIdentifier, ncrtModTable, null, null);
+               ncrtApi.modifyNcrt(cellIdentifier, ncrtModTable);
                response.setStatus(healthApi.getApiClient().getStatusCode().value());
        }
 
@@ -137,7 +137,7 @@ public class AnrXappController {
                        @RequestBody NeighborCellRelationDelTable ncrtDelTable, //
                        HttpServletResponse response) {
                logger.debug("modifyNcrt: cellIdentifier {} delTable {}", cellIdentifier, ncrtDelTable);
-               ncrtApi.deleteNcrt(cellIdentifier, ncrtDelTable, null, null);
+               ncrtApi.deleteNcrt(cellIdentifier, ncrtDelTable);
                response.setStatus(healthApi.getApiClient().getStatusCode().value());
        }
 }