AsMapInterface minor fix

This commit is contained in:
adragusin
2020-05-06 09:26:50 +03:00
committed by Dan Christian Bogos
parent ebaf7aa698
commit ebfe980883
2 changed files with 30 additions and 30 deletions

View File

@@ -355,23 +355,23 @@ func TestERsCfgAsMapInterface(t *testing.T) {
"sessions_conns": []string{"conn1", "conn3"},
"readers": []map[string]interface{}{
{
"filters": []string{},
"flags": map[string][]interface{}{},
"id": "*default",
"partial_record_cache": "0",
"processed_path": "/var/spool/cgrates/cdrc/out",
"row_length": 0,
"run_delay": "0",
"soome": "",
"source_path": "/var/spool/cgrates/cdrc/in",
"tenant": "",
"timezone": "",
"xml_root_path": []string{""},
"cache_dump_fields": []map[string]interface{}{},
"concurrent_requests": 1024,
"db_type": "*none",
"failed_calls_prefix": "",
"field_separator": ",",
"filters": []string{},
"flags": map[string][]interface{}{},
"id": "*default",
"partial_record_cache": "0",
"processed_path": "/var/spool/cgrates/cdrc/out",
"row_length": 0,
"run_delay": "0",
"partial_cache_expiry_action": "",
"source_path": "/var/spool/cgrates/cdrc/in",
"tenant": "",
"timezone": "",
"xml_root_path": []string{""},
"cache_dump_fields": []map[string]interface{}{},
"concurrent_requests": 1024,
"db_type": "*none",
"failed_calls_prefix": "",
"field_separator": ",",
"fields": []map[string]interface{}{
{"mandatory": true, "path": "*cgreq.ToR", "tag": "ToR", "type": "*variable", "value": "~*req.2"},
{"mandatory": true, "path": "*cgreq.OriginID", "tag": "OriginID", "type": "*variable", "value": "~*req.3"},
@@ -405,18 +405,18 @@ func TestERsCfgAsMapInterface(t *testing.T) {
{"mandatory": true, "path": "*cgreq.AnswerTime", "tag": "AnswerTime", "type": "*variable", "value": "~*req.12"},
{"mandatory": true, "path": "*cgreq.Usage", "tag": "Usage", "type": "*variable", "value": "~*req.13"},
},
"filters": filters,
"flags": map[string][]interface{}{},
"id": "file_reader1",
"partial_record_cache": "0",
"processed_path": "/tmp/ers/out",
"row_length": 0,
"run_delay": "-1",
"soome": "",
"source_path": "/tmp/ers/in",
"tenant": "",
"timezone": "",
"xml_root_path": []string{""},
"filters": filters,
"flags": map[string][]interface{}{},
"id": "file_reader1",
"partial_record_cache": "0",
"processed_path": "/tmp/ers/out",
"row_length": 0,
"run_delay": "-1",
"partial_cache_expiry_action": "",
"source_path": "/tmp/ers/in",
"tenant": "",
"timezone": "",
"xml_root_path": []string{""},
},
},
}

View File

@@ -2010,7 +2010,7 @@ const (
FlagsCfg = "flags"
FailedCallsPrefixCfg = "failed_calls_prefix"
PartialRecordCacheCfg = "partial_record_cache"
PartialCacheExpiryActionCfg = "soome"
PartialCacheExpiryActionCfg = "partial_cache_expiry_action"
FieldsCfg = "fields"
CacheDumpFieldsCfg = "cache_dump_fields"
)