From bbe7a1e3ae0e7ce0fc601b2be363fd90a5eb7622 Mon Sep 17 00:00:00 2001 From: rajalakshmisv Date: Tue, 21 Dec 2021 17:26:02 +0000 Subject: [PATCH 1/1] negative case added Signed-off-by: rajalakshmisv Change-Id: Ia704406c67092e3dfc51e52e570f0f5ec24d2657 --- control/rcService.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/control/rcService.go b/control/rcService.go index 4a087e4..005b742 100644 --- a/control/rcService.go +++ b/control/rcService.go @@ -31,7 +31,7 @@ func (aPtrSendMsgSrv *RCControlServer) SendRICControlReqServiceGrpc(aCtx context if aPtrRicControlGrpcReq == nil { xapp.Logger.Error("Received nil data from Send error rsp") } else { - if len(aPtrRicControlGrpcReq.E2NodeID) == 0 || len(aPtrRicControlGrpcReq.RICControlMessageData.TargetCellID) == 0 || len(aPtrRicControlGrpcReq.RICControlHeaderData.UEID) == 0 { + if len(aPtrRicControlGrpcReq.E2NodeID) == 0 || len(aPtrRicControlGrpcReq.RICControlMessageData.TargetCellID) == 0 || len(aPtrRicControlGrpcReq.RICControlHeaderData.UEID) == 0 || len(aPtrRicControlGrpcReq.RanName) == 0 || len(aPtrRicControlGrpcReq.PlmnID) == 0{ xapp.Logger.Error("Mandatory parameters are not received send Error rsp to client,no control Request will be initiated ") } else { xapp.Logger.Info("GRPC Control request validated, initiate Control Request to RAN") -- 2.16.6