Skip to content
Snippets Groups Projects

Resolve "Subscribe to network element on creation in controller"

5 files
+ 38
11
Compare changes
  • Side-by-side
  • Inline
Files
5
@@ -206,6 +206,8 @@ func bootstrapUnitTest() {
conflict.Metadata{ResourceVersion: 0})
_ = networkElementService.Add(mne)
networkElementWatcher := nucleus.NewNetworkElementWatcher(networkElementService, eventService)
pndService := &mocks.PndService{}
pndService.On("GetAll").Return([]networkdomain.NetworkDomain{}, nil)
pndService.On("Add", mock.Anything).Return(nil)
@@ -234,6 +236,7 @@ func bootstrapUnitTest() {
rpb.NewPluginRegistryServiceClient(&grpc.ClientConn{}),
csbi.NewCsbiServiceClient(&grpc.ClientConn{}),
func(u uuid.UUID, c chan networkelement.Details) {},
networkElementWatcher,
)
ppb.RegisterPndServiceServer(s, northbound.Pnd)
Loading