// 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"
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)
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 {
loadInformationHandler.Handle(notificationRequest)
return nil
-}
+}*/
//func TestLoadInformationHandlerSuccess(t *testing.T) {
// log, err := logger.InitLogger(logger.InfoLevel)