Code Review
/
ric-plt
/
e2mgr.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
RIC-432 - Support Update eNB REST API
[ric-plt/e2mgr.git]
/
E2Manager
/
handlers
/
rmrmsghandlers
/
enb_load_information_notification_handler_test.go
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
9c58274
..
743083b
100644
(file)
--- a/
E2Manager/handlers/rmrmsghandlers/enb_load_information_notification_handler_test.go
+++ b/
E2Manager/handlers/rmrmsghandlers/enb_load_information_notification_handler_test.go
@@
-20,7
+20,7
@@
package rmrmsghandlers
package rmrmsghandlers
-import (
+
/*
import (
"e2mgr/models"
"fmt"
"time"
"e2mgr/models"
"fmt"
"time"
@@
-34,7
+34,7
@@
const (
GarbagePdu string = "12312312"
)
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)
var packedByteSlice []byte
_, err := fmt.Sscanf(packedPdu, "%x", &packedByteSlice)
@@
-43,10
+43,10
@@
func createNotificationRequest(ranName string, transactionId string, packedPdu s
return nil, err
}
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 {
notificationRequest, err := createNotificationRequest(ranName, transactionId, pdu)
if err != nil {
@@
-55,7
+55,7
@@
func createNotificationRequestAndHandle(ranName string, transactionId string, lo
loadInformationHandler.Handle(notificationRequest)
return nil
loadInformationHandler.Handle(notificationRequest)
return nil
-}
+}
*/
//func TestLoadInformationHandlerSuccess(t *testing.T) {
// log, err := logger.InitLogger(logger.InfoLevel)
//func TestLoadInformationHandlerSuccess(t *testing.T) {
// log, err := logger.InitLogger(logger.InfoLevel)