[RIC-431] Add rnibWriter UTs
[ric-plt/e2mgr.git] / E2Manager / handlers / httpmsghandlers / update_gnb_request_handler.go
index 5d9d2b2..5e382b3 100644 (file)
@@ -74,7 +74,7 @@ func (h *UpdateGnbRequestHandler) Handle(request models.Request) (models.IRespon
                return nil, err
        }
 
-       return models.NewUpdateGnbResponse(nodebInfo), nil
+       return models.NewNodebResponse(nodebInfo), nil
 }
 
 func (h *UpdateGnbRequestHandler) updateGnbCells(nodebInfo *entities.NodebInfo, updateGnbRequest models.UpdateGnbRequest) error {
@@ -161,10 +161,6 @@ func isServedNrCellInformationValid(servedNrCellInformation *entities.ServedNRCe
                return errors.New("nrMode")
        }
 
-       if servedNrCellInformation.NrPci == 0 {
-               return errors.New("nrPci")
-       }
-
        if len(servedNrCellInformation.ServedPlmns) == 0 {
                return errors.New("servedPlmns")
        }
@@ -205,10 +201,6 @@ func isNrNeighbourInformationValid(nrNeighbourInformation *entities.NrNeighbourI
                return errors.New("nrMode")
        }
 
-       if nrNeighbourInformation.NrPci == 0 {
-               return errors.New("nrPci")
-       }
-
        return isNrNeighbourInfoChoiceNrModeValid(nrNeighbourInformation.ChoiceNrMode)
 }