6 "gerrit.o-ran-sc.org/r/ric-plt/nodeb-rnib.git/entities"
8 "github.com/stretchr/testify/assert"
12 func RanAlarmServiceTest(t *testing.T) (RanAlarmService, *logger.Logger, *configuration.Configuration) {
14 logger, err := logger.InitLogger(DebugLevel)
16 t.Errorf("#... - failed to initialize logger, error: %s", err)
18 config := &configuration.Configuration{RnibRetryIntervalMs: 10, MaxRnibConnectionAttempts: 3}
19 ranAlarmServiceInstance := NewRanAlarmService(logger , config)
20 return ranAlarmServiceInstance,logger, config
24 func TestSetConnectivityChangeAlarmTest(t *testing.T){
25 ranAlarmServiceInstance,_,_ := RanAlarmServiceTest(t)
26 nodebInfo := &entities.NodebInfo{}
27 err := ranAlarmServiceInstance.SetConnectivityChangeAlarm(nodebInfo)