-func TestNngPushInitializeandsendPolicies(t *testing.T) {
- var nngpush = NngPush{}
- resetTestPushDataset(nngpush, stub.ValidEndpoints)
- policies := []string{"hello","welcome"}
- nngpush.send(rtmgr.Eps["localhost"],&policies)
+func TestRmrPushInitializeandsendPolicies(t *testing.T) {
+ var rmrpush = RmrPush{}
+ resetTestPushDataset(rmrpush, stub.ValidEndpoints)
+ policies := []string{"hello", "welcome"}
+ rmrpush.send_data(rtmgr.Eps["localhost"], &policies, 1)
+}
+
+func TestString(t *testing.T) {
+ var params xapp.RMRParams
+ params.Payload = []byte("abcdefgh")
+ params.Meid = &xapp.RMRMeid{}
+ msg := RMRParams{¶ms}
+ msg.String()
+
+}
+
+func TestSenddata(t *testing.T) {
+ var rmrpush = RmrPush{}
+ ep := rtmgr.Endpoint{Whid: -1, Ip: "1.1.1.1"}
+ policies := []string{"mse|12345|-1|local.com"}
+ rmrpush.send_data(&ep, &policies, 300)
+}
+
+func TestSendDynamicdata(t *testing.T) {
+ var rmrpush = RmrPush{}
+ ep := "1.1.1.1"
+ policies := []string{"mse|12345|-1|local.com"}
+ rmrpush.sendDynamicRoutes(ep, 1, &policies, 300)