X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=E2Manager%2Fhandlers%2Frmrmsghandlers%2Fenb_load_information_notification_handler_test.go;h=743083b1975895aba62771d9671ef7755a3c3853;hb=7000880c4031e607a2fe36046fd097f486476a84;hp=b11ed298df230e017a3b65ac495f1d26a57a9e5c;hpb=de19068aaa1f3d2b415cd960106121ceb167aaa9;p=ric-plt%2Fe2mgr.git diff --git a/E2Manager/handlers/rmrmsghandlers/enb_load_information_notification_handler_test.go b/E2Manager/handlers/rmrmsghandlers/enb_load_information_notification_handler_test.go index b11ed29..743083b 100644 --- a/E2Manager/handlers/rmrmsghandlers/enb_load_information_notification_handler_test.go +++ b/E2Manager/handlers/rmrmsghandlers/enb_load_information_notification_handler_test.go @@ -13,11 +13,14 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. -// + +// This source code is part of the near-RT RIC (RAN Intelligent Controller) +// platform project (RICP). + package rmrmsghandlers -import ( +/*import ( "e2mgr/models" "fmt" "time" @@ -31,7 +34,7 @@ const ( GarbagePdu string = "12312312" ) -func createNotificationRequest(ranName string, transactionId string, packedPdu string) (*models.NotificationRequest, error) { +func createNotificationRequest(ranName string, transactionId []byte, packedPdu string) (*models.NotificationRequest, error) { var packedByteSlice []byte _, err := fmt.Sscanf(packedPdu, "%x", &packedByteSlice) @@ -40,10 +43,10 @@ func createNotificationRequest(ranName string, transactionId string, packedPdu s return nil, err } - return models.NewNotificationRequest(ranName, packedByteSlice, time.Now(), transactionId), nil + return models.NewNotificationRequest(ranName, packedByteSlice, time.Now(), transactionId, nil), nil } -func createNotificationRequestAndHandle(ranName string, transactionId string, loadInformationHandler EnbLoadInformationNotificationHandler, pdu string) error { +func createNotificationRequestAndHandle(ranName string, transactionId []byte, loadInformationHandler EnbLoadInformationNotificationHandler, pdu string) error { notificationRequest, err := createNotificationRequest(ranName, transactionId, pdu) if err != nil { @@ -52,7 +55,7 @@ func createNotificationRequestAndHandle(ranName string, transactionId string, lo loadInformationHandler.Handle(notificationRequest) return nil -} +}*/ //func TestLoadInformationHandlerSuccess(t *testing.T) { // log, err := logger.InitLogger(logger.InfoLevel)