Removed Book Keeping of RMR CTL ports. Route Distribution only on demand
[ric-plt/rtmgr.git] / pkg / sbi / nngpush_test.go
index f2f8fe1..79821eb 100644 (file)
@@ -131,7 +131,7 @@ func TestDistributeToEp(t *testing.T) {
        var rmrpush = RmrPush{}
        resetTestPushDataset(rmrpush, stub.ValidEndpoints)
 
-       err = rmrpush.DistributeToEp(stub.ValidPolicies,rtmgr.Eps["localhost"])
+       err = rmrpush.DistributeToEp(stub.ValidPolicies,"localhost:4561",100)
        if err != nil {
                t.Errorf("rmrpush.DistributetoEp(policies) was incorrect, got: %v, want: %v.", err, "nil")
        }
@@ -152,7 +152,7 @@ func TestCreateEndpoint(t *testing.T) {
        var rmrpush = RmrPush{}
        resetTestPushDataset(rmrpush, stub.ValidEndpoints1)
        rmrpush.CreateEndpoint("192.168.0.1:0","Src=192.168.0.1:4561")
-       rmrpush.CreateEndpoint("localhost:4560","Src=localhost:4561")
+       rmrpush.CreateEndpoint("localhost:4560","Src=192.168.11.1:4444")
 }
 /*
 Initialize and send policies