negative case added
[ric-app/rc.git] / control / rcService.go
index 39175e9..005b742 100644 (file)
@@ -7,7 +7,7 @@ import (
        "time"
 
        "gerrit.o-ran-sc.org/r/ric-plt/xapp-frame/pkg/xapp"
-       "gerrit.o-ran-sc.org/r/scp/ric-app/protocol/grpc/ricmsgcommrpc/rc"
+       "gerrit.o-ran-sc.org/r/ric-app/rc/protocol/grpc/ricmsgcommrpc/rc"
        "golang.org/x/net/context"
 )
 
@@ -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")