Make subscription manager independent of E2SMs

Issue-ID: RIC-628

Change-Id: Ia9e37863c0a5b76f535867b5aa127a8748d0a1d9
Signed-off-by: Juha Hyttinen <juha.hyttinen@nokia.com>
diff --git a/pkg/control/ut_messaging_test.go b/pkg/control/ut_messaging_test.go
index 1e196f0..548950a 100644
--- a/pkg/control/ut_messaging_test.go
+++ b/pkg/control/ut_messaging_test.go
@@ -372,14 +372,17 @@
 	//Req1
 	rparams1 := &teststube2ap.E2StubSubsReqParams{}
 	rparams1.Init()
-	rparams1.Req.EventTriggerDefinition.ProcedureCode = 5
 	cretrans1 := xappConn1.SendSubsReq(t, rparams1, nil)
 	crereq1, cremsg1 := e2termConn1.RecvSubsReq(t)
 
 	//Req2
 	rparams2 := &teststube2ap.E2StubSubsReqParams{}
 	rparams2.Init()
-	rparams2.Req.EventTriggerDefinition.ProcedureCode = 28
+
+	rparams2.Req.EventTriggerDefinition.Data.Length = 1
+	rparams2.Req.EventTriggerDefinition.Data.Data = make([]uint8, rparams2.Req.EventTriggerDefinition.Data.Length)
+	rparams2.Req.EventTriggerDefinition.Data.Data[0] = 2
+
 	cretrans2 := xappConn2.SendSubsReq(t, rparams2, nil)
 	crereq2, cremsg2 := e2termConn1.RecvSubsReq(t)