X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=E2Manager%2Fhandlers%2Fx2_reset_response_handler_test.go;h=a99ea62347425ea0b115e1eba8e1532331ae09f6;hb=refs%2Fchanges%2F50%2F750%2F1;hp=1ea838413790f8b69783a17bfd56aca565d8b3d1;hpb=9268d4bc1020eb357283796ebc2b3e85623624e4;p=ric-plt%2Fe2mgr.git diff --git a/E2Manager/handlers/x2_reset_response_handler_test.go b/E2Manager/handlers/x2_reset_response_handler_test.go index 1ea8384..a99ea62 100644 --- a/E2Manager/handlers/x2_reset_response_handler_test.go +++ b/E2Manager/handlers/x2_reset_response_handler_test.go @@ -24,7 +24,6 @@ import ( "e2mgr/rmrCgo" "e2mgr/sessions" "e2mgr/tests" - "fmt" "gerrit.o-ran-sc.org/r/ric-plt/nodeb-rnib.git/common" "gerrit.o-ran-sc.org/r/ric-plt/nodeb-rnib.git/entities" "gerrit.o-ran-sc.org/r/ric-plt/nodeb-rnib.git/reader" @@ -49,7 +48,8 @@ func TestX2ResetResponseSuccess(t *testing.T) { h := NewX2ResetResponseHandler(rnibReaderProvider) e2Sessions := make(sessions.E2Sessions) - xaction := []byte(fmt.Sprintf("%32s", "1234")) + //xaction := []byte(fmt.Sprintf("%32s", "1234")) + xaction := []byte("RanName") e2Sessions[string(xaction)] = sessions.E2SessionDetails{SessionStart: time.Now()} mBuf := rmrCgo.NewMBuf(tests.MessageType, len(payload),"RanName", &payload, &xaction) notificationRequest := models.NotificationRequest{RanName: mBuf.Meid, Len: mBuf.Len, Payload: *mBuf.Payload, @@ -80,7 +80,8 @@ func TestX2ResetResponseReaderFailure(t *testing.T) { h := NewX2ResetResponseHandler(rnibReaderProvider) e2Sessions := make(sessions.E2Sessions) - xaction := []byte(fmt.Sprintf("%32s", "1234")) + //xaction = []byte(fmt.Sprintf("%32s", "1234")) + xaction := []byte("RanName") e2Sessions[string(xaction)] = sessions.E2SessionDetails{SessionStart: time.Now()} mBuf := rmrCgo.NewMBuf(tests.MessageType, len(payload),"RanName", &payload, &xaction) notificationRequest := models.NotificationRequest{RanName: mBuf.Meid, Len: mBuf.Len, Payload: *mBuf.Payload, @@ -111,7 +112,8 @@ func TestX2ResetResponseUnpackFailure(t *testing.T) { h := NewX2ResetResponseHandler(rnibReaderProvider) e2Sessions := make(sessions.E2Sessions) - xaction := []byte(fmt.Sprintf("%32s", "1234")) + //xaction := []byte(fmt.Sprintf("%32s", "1234")) + xaction := []byte("RanName") e2Sessions[string(xaction)] = sessions.E2SessionDetails{SessionStart: time.Now()} mBuf := rmrCgo.NewMBuf(tests.MessageType, len(payload),"RanName", &payload, &xaction) notificationRequest := models.NotificationRequest{RanName: mBuf.Meid, Len: mBuf.Len, Payload: *mBuf.Payload,