UT-Part 6 with overall coverage upto 45%
Change-Id: I4960bae8429ae34d88a2f98f288f72d582f9e788
diff --git a/internal/pkg/application/meters.go b/internal/pkg/application/meters.go
index a7fa722..cc61a4f 100644
--- a/internal/pkg/application/meters.go
+++ b/internal/pkg/application/meters.go
@@ -314,13 +314,13 @@
mm := &va.MeterMgr
if _, ok := mm.GetMeterByName(name); !ok {
logger.Warnw(ctx, "Meter profile does not exist", log.Fields{"Name": name})
- return errors.New("Meter profile doesn't exist")
+ return errors.New("meter profile doesn't exist")
}
cfg, _ := mm.GetMeterByName(name)
if cfg.AssociatedServices != 0 {
logger.Warnw(ctx, "Mismatch in submgr and vgc oeter profile service reference",
log.Fields{"MeterProfile": name, "serviceCount": cfg.AssociatedServices})
- return errors.New("Service reference is not 0")
+ return errors.New("service reference is not 0")
}
// TODO : delete from all devices
delmeterFromDevice := func(key interface{}, value interface{}) bool {