mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-14 20:59:53 +05:00
Updated test in config
This commit is contained in:
@@ -2052,28 +2052,4 @@ func TestCheckConfigSanity(t *testing.T) {
|
||||
if err := cfg.checkConfigSanity(); err == nil || err.Error() != expected {
|
||||
t.Errorf("Expecting: %+q received: %+q", expected, err)
|
||||
}
|
||||
cfg.CdrcProfiles = map[string][]*CdrcCfg{
|
||||
"test": []*CdrcCfg{
|
||||
&CdrcCfg{
|
||||
Enabled: true,
|
||||
CdrsConns: []*RemoteHost{
|
||||
&RemoteHost{Address: utils.MetaInternal},
|
||||
},
|
||||
CdrFormat: utils.MetaFileCSV,
|
||||
ContentFields: []*FCTemplate{
|
||||
&FCTemplate{
|
||||
Value: RSRParsers{
|
||||
&RSRParser{
|
||||
attrName: "test1",
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
expected = "<CDR> fields must be indices in case of .csv files, have instead: test1"
|
||||
if err := cfg.checkConfigSanity(); err == nil || err.Error() != expected {
|
||||
t.Errorf("Expecting: %+q received: %+q", expected, err)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user