Uploaded image for project: 'Near Realtime RAN Intelligent Controller'
  1. Near Realtime RAN Intelligent Controller
  2. RIC-297

E2M - Update GNB Request REST API - Validation

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Done
    • Icon: Medium Medium
    • Bronze-R4
    • None
    • e2mgr
    • None

      Requirements:

      The following fields has to exist, otherwise - error:

      • RAN Name (Resource ID) - If not found - HTTP 404 Not found + 404 resource not found

      From now on - the content of the payload should contain the mandatory fields, otehrwise - HTTP 400 + 402 validation error 

      (Note - there can a an object which is optional, like nrNeighbourInfos, but if it exist, its mandatory fields must exist).

      • GNB 
      • servedNrCells
      • servedNrCellInformation  

      Inside the Nr Neighbour Information

      • nrCgi
      • choiceNrMode
      • nrMode
      • nrPCI

      Inside the Served NR Cell Information

      • cellId
      • choiceNrMode
      • nrMode
      • nrPCI
      • servedPlmns

      also, there can be HTTP 500 Internal Server Error + 500 RNIB error or 501 Internal Server Error. Please try again later (SW Exception)

      Acceptance:

      Negative

      • Call PUT http://<serverBaseURL>/v#/nodeb or with unknown RAN name. See Appropriate 404
      • Call this valid RAN Name but with missing mandatory fields. See }}{{Appropriate 400
      • Call this valid RAN Name with optional objects (neighbor) which inside there are missing mandatory fields. See }}{{Appropriate 400{{}} 

      Positive

      • Call PUT http://<serverBaseURL>/v#/nodeb or valid RAN Name and all mandatory fields OK. See (w/out calling the implementation) it is OK.

       

      Test Plan

       

       

      Given When Then
      RAN doesn't exist PUT /nodeb/test is called;
      Request Body: {
      "servedNrCells" : [...] 
      }
      HTTP 404 Not Found;
      Response Body: { "errorCode": 404, "errorMessage": "Resource Not Found" }
      DB is down PUT /nodeb/test is called;
      Request Body: {
      "servedNrCells" : [...] 
      }
      HTTP 500 Internal Server Error;
      Response Body: { "errorCode" : 500, "errorMessage" : "RNIB error" }
      test2 is an existing RAN
      AND empty serverNrCells array
      PUT /nodeb/test2 is called;
      Request Body: {
      "servedNrCells" : [] 
      }
      HTTP 400 Bad Request;
      Response Body: { "errorCode":402, "errorMessage": "Validation error" }
      test2 is an existing RAN
      AND servedNrCellInformation mandatory field missing
      PUT /nodeb/test2 is called;
      Request Body: { "servedNrCells" : [{ "nrNeighbourInfos":[...] }

      }
      HTTP 400 Bad Request;
      Response Body: { "errorCode":402, "errorMessage": "Validation error" }
      test2 is an existing RAN
      AND servedNrCellInformation mandatory field exists
      AND a mandatory field is missing (cellId, etc.)
      PUT /nodeb/test2 is called;
      Request Body: { "servedNrCells" : [ { "servedNrCellInformation":{...}
      }] 
      }
      HTTP 400 Bad Request;
      Response Body: { "errorCode":402, "errorMessage": "Validation error" }
      test2 is an existing RAN
      AND servedNrCellInformation mandatory field exists
      AND nrNeighbourInfos optional field exists
      AND a mandatory field is missing (nrCgi, etc.)
      PUT /nodeb/test2 is called;
      Request Body: { "servedNrCells" : [ { "servedNrCellInformation":{...}
      ,
      "nrNeighbourInfos":\\\{...} 
      }] 
      }
      HTTP 400 Bad Request;
      Response Body: { "errorCode":402, "errorMessage": "Validation error" }
      test2 is an existing RAN
      AND all mandatory fields exist
      PUT /nodeb/test2 is called;
      Request Body: { "servedNrCells" : [ { "servedNrCellInformation":{...}
      }] 
      }
      Validation passes (eventually, given BL is implemented, 200 OK)

       
       

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            idanshal Idan Shalom
            avinoambernstein Avinoam Bernstein
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: