mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
Test for MatchIndex with Empty filterID
This commit is contained in:
committed by
Dan Christian Bogos
parent
7d597caf3b
commit
192ecfd776
@@ -908,4 +908,14 @@ func testITTestIndexingWithEmptyFltrID(t *testing.T) {
|
||||
t.Errorf("Expecting %+v, received: %+v", reverseIdxes, reverseRcvIdx)
|
||||
}
|
||||
}
|
||||
eMp := utils.StringMap{
|
||||
"THD_Test": true,
|
||||
}
|
||||
if rcvMp, err := dataManager.MatchFilterIndex(
|
||||
GetDBIndexKey(rfi.itemType, rfi.dbKeySuffix, false),
|
||||
utils.MetaDefault, utils.META_ANY, utils.META_ANY); err != nil {
|
||||
t.Error(err)
|
||||
} else if !reflect.DeepEqual(eMp, rcvMp) {
|
||||
t.Errorf("Expecting: %+v, received: %+v", eMp, rcvMp)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user