XMLWordPrintable

    • Icon: Story Story
    • Resolution: Done
    • Icon: Medium Medium
    • Cherry-R5
    • None
    • e2mgr
    • None

      See the R4 AID - https://wiki.o-ran-sc.org/pages/viewpage.action?pageId=20874584

      • Check that the Mandatory fields exist - both in the ENB Node Object and in each of the Served Cells array (this array is mandatory also) - otherwise 400 Bad Request with 402 error
      • Check that RAN exist - otherwise 404 Not found with 404 error
      • Check that RAN is really eNB and not GNB - otherwise 400 Bad Request with 402 error
      • Note that we enlarge the Cell Object with Additional Cell Information object. all are optional.
      • If fail RNIB - 500 with 500 error
      • Also Insert into the Cell "Table" the Cells. Take care to delete existing Cells that are no longer exist.
      • When Update the RAN - User Set and Publish with the New Channel  like we did in Insert (RAN NAME + action. In this case,. Action = Updated)   
      • If succeed - 200 OK with the same response as Get NodeB.

       

      Test Plan

       

      Given When Then
      enb is missing in request body
      OR
      enbType is missing in enb field in request body
      OR
      servedCells are missing in enb field in requestBody
      PUT /v1/nodeb/enb/test received with an invalid request body  400 Bad Request
       
      {"errorCode": 402, "errorMessage": "Validation error"}

       
       
       

      DB is down PUT /v1/nodeb/enb/test received with a valid request body (all mandatory fields exist)  500 Internal Server Error
       
      {"errorCode": 500, "errorMessage": "RNIB error"}

       
       

      RAN name from URL doesn't exist in DB PUT /v1/nodeb/enb/test received with a valid request body   404 Not Found
       
      {"errorCode": 404, "errorMessage": "Resource not found"}
       RAN with 3 servedCells exists in DB PUT /v1/nodeb/enb/test received with a valid request body, 2 servedCells  200 OK 
      NodebInfo{}
      • Keys are updated in DB
      • SetAndPublish is called with RAN_MANIPULATION channel and <RAN_NAME>_UPDATED event
      • When calling GET /nodeb/test, 2 servedCells are returned
      • Verify that the third cell is not on DB

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

            Irina Irina Rotem
            avinoambernstein Avinoam Bernstein
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 3 days, 1 hour
                3d 1h