Code Review
/
ric-plt
/
rtmgr.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Moving to ubuntu 18 and fixing UT's
[ric-plt/rtmgr.git]
/
pkg
/
rpe
/
rmr_test.go
diff --git
a/pkg/rpe/rmr_test.go
b/pkg/rpe/rmr_test.go
index
02f2608
..
950cd99
100644
(file)
--- a/
pkg/rpe/rmr_test.go
+++ b/
pkg/rpe/rmr_test.go
@@
-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
func TestRmrPushGeneratePolicies(t *testing.T) {
var rmrpush = RmrPush{}
var pcs rtmgr.RicComponents
- resetTestDataset(stub.ValidEndpoints)
+ resetTestDataset(stub.ValidEndpoints
1
)
stub.ValidPlatformComponents = nil
rtmgr.Subs = *stub.ValidSubscriptions
rtmgr.PrsCfg = stub.DummyRoutes
stub.ValidPlatformComponents = nil
rtmgr.Subs = *stub.ValidSubscriptions
rtmgr.PrsCfg = stub.DummyRoutes
@@
-76,3
+76,11
@@
func TestRmrGetRpe(t *testing.T) {
_, _ = GetRpe("")
_, _ = GetRpe("rmrpush")
}
_, _ = GetRpe("")
_, _ = GetRpe("rmrpush")
}
+
+/*
+generateRouteTable with empty Platform components
+*/
+func TestGenerateRouteTableRmrGetRpe(t *testing.T) {
+ rpe := Rpe{}
+ _ = rpe.generateRouteTable(stub.ValidEndPointsEmpty)
+}