diff --git a/config/erscfg_test.go b/config/erscfg_test.go index 646df3592..67ed00ea8 100644 --- a/config/erscfg_test.go +++ b/config/erscfg_test.go @@ -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{""}, }, }, } diff --git a/utils/consts.go b/utils/consts.go index 53555cf36..732268412 100755 --- a/utils/consts.go +++ b/utils/consts.go @@ -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" )