diff --git a/engine/filters.go b/engine/filters.go index 737f4642f..e31198f0b 100644 --- a/engine/filters.go +++ b/engine/filters.go @@ -47,22 +47,17 @@ const ( MetaGreaterOrEqual = "*gte" MetaResources = "*resources" - MetaNotString = "*notstring" - MetaNotPrefix = "*notprefix" - MetaNotSuffix = "*notsuffix" - MetaNotEmpty = "*notempty" - MetaNotExists = "*notexists" - MetaNotTimings = "*nottimings" - MetaNotRSR = "*notrsr" - MetaNotStatS = "*notstats" - MetaNotDestinations = "*notdestinations" - MetaNotMinCapPrefix = "*notmin_" - MetaNotMaxCapPrefix = "*notmax_" - MetaNotLessThan = "*notlt" - MetaNotLessOrEqual = "*notlte" - MetaNotGreaterThan = "*notgt" - MetaNotGreaterOrEqual = "*notgte" - MetaNotResources = "*notresources" + MetaNotString = "*notstring" + MetaNotPrefix = "*notprefix" + MetaNotSuffix = "*notsuffix" + MetaNotEmpty = "*notempty" + MetaNotExists = "*notexists" + MetaNotTimings = "*nottimings" + MetaNotRSR = "*notrsr" + MetaNotStatS = "*notstats" + MetaNotDestinations = "*notdestinations" + MetaNotMinCapPrefix = "*notmin_" + MetaNotMaxCapPrefix = "*notmax_" ) func NewFilterS(cfg *config.CGRConfig, @@ -324,8 +319,7 @@ func (fltr *FilterRule) Pass(dP config.DataProvider, result, err = fltr.passRSR(dP) case MetaStatS, MetaNotStatS: result, err = fltr.passStatS(dP, rpcClnt, tenant) - case MetaLessThan, MetaLessOrEqual, MetaGreaterThan, MetaGreaterOrEqual, - MetaNotLessThan, MetaNotLessOrEqual, MetaNotGreaterThan, MetaNotGreaterOrEqual: + case MetaLessThan, MetaLessOrEqual, MetaGreaterThan, MetaGreaterOrEqual: result, err = fltr.passGreaterThan(dP) case MetaResources, MetaNotResources: result, err = fltr.passResourceS(dP, rpcClnt, tenant) diff --git a/general_tests/ddazmbl1_test.go b/general_tests/ddazmbl1_test.go index fb307e564..06bc5d16c 100644 --- a/general_tests/ddazmbl1_test.go +++ b/general_tests/ddazmbl1_test.go @@ -159,7 +159,7 @@ func TestDZ1Debit(t *testing.T) { } acnt, err := dataDB.DataDB().GetAccount("cgrates.org:12344") if err != nil { - t.Error(err) + t.Fatal(err) } if acnt.BalanceMap[utils.VOICE][0].Value != 20000000000 { t.Error("Account does not have expected *voice units in balance",