Making Route Distribution Synchronous
[ric-plt/rtmgr.git] / pkg / rpe / rmr_test.go
index 02f2608..fe61356 100644 (file)
@@ -22,7 +22,7 @@
 ==================================================================================
 */
 /*
-       Mnemonic:       nngpub_test.go
+       Mnemonic:       rmrpub_test.go
        Abstract:
        Date:           25 April 2019
 */
@@ -48,7 +48,7 @@ RmrPush.GeneratePolicies() method is tested for happy path case
 func TestRmrPushGeneratePolicies(t *testing.T) {
        var rmrpush = RmrPush{}
        var pcs rtmgr.RicComponents
-       resetTestDataset(stub.ValidEndpoints)
+       resetTestDataset(stub.ValidEndpoints1)
        stub.ValidPlatformComponents = nil
        rtmgr.Subs = *stub.ValidSubscriptions
        rtmgr.PrsCfg = stub.DummyRoutes
@@ -76,3 +76,11 @@ func TestRmrGetRpe(t *testing.T) {
        _, _ = GetRpe("")
        _, _ = GetRpe("rmrpush")
 }
+
+/*
+generateRouteTable with empty Platform components
+*/
+func TestGenerateRouteTableRmrGetRpe(t *testing.T) {
+       rpe := Rpe{}
+       _ = rpe.generateRouteTable(stub.ValidEndPointsEmpty)
+}