Add it test for exporting and rerating cdrs

This commit is contained in:
ionutboangiu
2022-02-25 17:54:12 +02:00
committed by Dan Christian Bogos
parent d4264e62a3
commit bcdf9214c1
7 changed files with 854 additions and 0 deletions

View File

@@ -0,0 +1,76 @@
{
"general": {
"log_level": 7,
"reply_timeout": "50s"
},
"listen": {
"rpc_json": ":2012",
"rpc_gob": ":2013",
"http": ":2080"
},
"data_db": {
"db_type": "*internal"
},
"stor_db": {
"db_type": "*internal"
},
"ees": {
"enabled": true,
"exporters": [
{
"id": "toNg2",
"type": "*rpc",
"opts": {
"rpcCodec": "*json",
"connIDs": ["rplConn"],
"serviceMethod": "CDRsV1.ProcessEvent",
"keyPath": "" ,
"certPath": "",
"caPath": "",
"tls": false,
"rpcConnTimeout" : "1s",
"rpcReplyTimeout":"5s",
"rpcAPIOpts": {
"*ralS": false
}
}
}
]
},
"rpc_conns": {
"rplConn": {
"strategy": "*broadcast_sync",
"conns": [{"address": "127.0.0.1:22012", "transport": "*json"}]
}
},
"rals": {
"enabled": true,
"max_increments":3000000
},
"cdrs": {
"enabled": true,
"rals_conns": ["*localhost"],
"store_cdrs": false,
"online_cdr_exports": ["toNg2"],
"ees_conns": ["*localhost"]
},
"sessions": {
"enabled": true,
"rals_conns": ["*localhost"],
"cdrs_conns": ["*localhost"],
"replication_conns": ["rplConn"]
},
"apiers": {
"enabled": true
}
}

View File

@@ -0,0 +1,82 @@
{
"general": {
"log_level": 7,
"reply_timeout": "50s"
},
"listen": {
"rpc_json": ":2012",
"rpc_gob": ":2013",
"http": ":2080"
},
"data_db": {
"db_type": "mongo",
"db_name": "10",
"db_port": 27017
},
"stor_db": {
"db_type": "mongo",
"db_name": "cgrates",
"db_port": 27017
},
"ees": {
"enabled": true,
"exporters": [
{
"id": "toNg2",
"type": "*rpc",
"opts": {
"rpcCodec": "*json",
"connIDs": ["rplConn"],
"serviceMethod": "CDRsV1.ProcessEvent",
"keyPath": "" ,
"certPath": "",
"caPath": "",
"tls": false,
"rpcConnTimeout" : "1s",
"rpcReplyTimeout":"5s",
"rpcAPIOpts": {
"*ralS": false
}
}
}
]
},
"rpc_conns": {
"rplConn": {
"strategy": "*broadcast_sync",
"conns": [{"address": "127.0.0.1:22012", "transport": "*json"}]
}
},
"rals": {
"enabled": true,
"max_increments":3000000
},
"cdrs": {
"enabled": true,
"rals_conns": ["*localhost"],
"store_cdrs": false,
"online_cdr_exports": ["toNg2"],
"ees_conns": ["*localhost"]
},
"sessions": {
"enabled": true,
"rals_conns": ["*localhost"],
"cdrs_conns": ["*localhost"],
"replication_conns": ["rplConn"]
},
"apiers": {
"enabled": true
}
}

View File

@@ -0,0 +1,78 @@
{
"general": {
"log_level": 7,
"reply_timeout": "50s"
},
"listen": {
"rpc_json": ":2012",
"rpc_gob": ":2013",
"http": ":2080"
},
"data_db": {
"db_type": "redis",
"db_port": 6379,
"db_name": "10"
},
"stor_db": {
"db_password": "CGRateS.org"
},
"ees": {
"enabled": true,
"exporters": [
{
"id": "toNg2",
"type": "*rpc",
"opts": {
"rpcCodec": "*json",
"connIDs": ["rplConn"],
"serviceMethod": "CDRsV1.ProcessEvent",
"keyPath": "" ,
"certPath": "",
"caPath": "",
"tls": false,
"rpcConnTimeout" : "1s",
"rpcReplyTimeout":"5s",
"rpcAPIOpts": {
"*ralS": false
}
}
}
]
},
"rpc_conns": {
"rplConn": {
"strategy": "*broadcast_sync",
"conns": [{"address": "127.0.0.1:22012", "transport": "*json"}]
}
},
"rals": {
"enabled": true,
"max_increments":3000000
},
"cdrs": {
"enabled": true,
"rals_conns": ["*localhost"],
"store_cdrs": false,
"online_cdr_exports": ["toNg2"],
"ees_conns": ["*localhost"]
},
"sessions": {
"enabled": true,
"rals_conns": ["*localhost"],
"cdrs_conns": ["*localhost"],
"replication_conns": ["rplConn"]
},
"apiers": {
"enabled": true
}
}

View File

@@ -0,0 +1,37 @@
{
"general": {
"log_level": 7,
"reply_timeout": "50s"
},
"listen": {
"rpc_json": ":22012",
"rpc_gob": ":22013",
"http": ":22080"
},
"data_db": {
"db_type": "*internal"
},
"stor_db": {
"db_type": "*internal"
},
"cdrs": {
"enabled": true,
"rals_conns": ["*localhost"],
"store_cdrs": true
},
"sessions": {
"enabled": true,
"rals_conns": ["*localhost"],
"cdrs_conns": ["*localhost"],
"listen_bijson": "127.0.0.1:22014"
},
"apiers": {
"enabled": true
}
}

View File

@@ -0,0 +1,41 @@
{
"general": {
"log_level": 7,
"reply_timeout": "50s"
},
"listen": {
"rpc_json": ":22012",
"rpc_gob": ":22013",
"http": ":22080"
},
"data_db": {
"db_type": "mongo",
"db_name": "10",
"db_port": 27017
},
"stor_db": {
"db_type": "mongo",
"db_name": "cgrates",
"db_port": 27017
},
"cdrs": {
"enabled": true,
"rals_conns": ["*localhost"],
"store_cdrs": true
},
"sessions": {
"enabled": true,
"rals_conns": ["*localhost"],
"cdrs_conns": ["*localhost"],
"listen_bijson": "127.0.0.1:22014"
},
"apiers": {
"enabled": true
}
}

View File

@@ -0,0 +1,39 @@
{
"general": {
"log_level": 7,
"reply_timeout": "50s"
},
"listen": {
"rpc_json": ":22012",
"rpc_gob": ":22013",
"http": ":22080"
},
"data_db": {
"db_type": "redis",
"db_port": 6379,
"db_name": "10"
},
"stor_db": {
"db_password": "CGRateS.org"
},
"cdrs": {
"enabled": true,
"rals_conns": ["*localhost"],
"store_cdrs": true
},
"sessions": {
"enabled": true,
"rals_conns": ["*localhost"],
"cdrs_conns": ["*localhost"],
"listen_bijson": "127.0.0.1:22014"
},
"apiers": {
"enabled": true
}
}