Updated tests in apier and general_tests

This commit is contained in:
adragusin
2020-03-03 19:20:50 +02:00
committed by Dan Christian Bogos
parent f21ed245ca
commit 1e6b59c7ee
12 changed files with 555 additions and 133 deletions

View File

@@ -0,0 +1,44 @@
{
"general": {
"log_level": 7,
"node_id" : "EngineMongo1",
},
"listen": {
"rpc_json": ":2022",
"rpc_gob": ":2023",
"http": ":2280",
},
"data_db": {
"db_type": "mongo",
"db_name": "10",
"db_port": 27017,
},
"stor_db": {
"db_type": "mongo",
"db_name": "cgrates",
"db_port": 27017,
},
"rals": {
"enabled": true,
},
"schedulers": {
"enabled": true,
},
"apiers": {
"enabled": true,
"scheduler_conns": ["*internal"],
},
}

View File

@@ -0,0 +1,41 @@
{
"general": {
"log_level": 7,
"node_id": "EngineRedis1"
},
"listen": {
"rpc_json": ":2022",
"rpc_gob": ":2023",
"http": ":2280",
},
"data_db": {
"db_type": "redis",
"db_port": 6379,
"db_name": "10",
},
"stor_db": {
"db_password": "CGRateS.org",
},
"rals": {
"enabled": true,
},
"schedulers": {
"enabled": true,
},
"apiers": {
"enabled": true,
"scheduler_conns": ["*internal"],
},
}

View File

@@ -0,0 +1,45 @@
{
"general": {
"log_level": 7,
"node_id" : "EngineMongo2",
},
"listen": {
"rpc_json": ":2032",
"rpc_gob": ":2033",
"http": ":2380",
},
"data_db": {
"db_type": "mongo",
"db_name": "11",
"db_port": 27017,
},
"stor_db": {
"db_type": "mongo",
"db_name": "cgrates",
"db_port": 27017,
},
"rals": {
"enabled": true,
},
"schedulers": {
"enabled": true,
},
"apiers": {
"enabled": true,
"scheduler_conns": ["*internal"],
},
}

View File

@@ -0,0 +1,40 @@
{
"general": {
"log_level": 7,
"node_id": "EngineRedis2"
},
"listen": {
"rpc_json": ":2032",
"rpc_gob": ":2033",
"http": ":2380",
},
"data_db": {
"db_type": "redis",
"db_port": 6379,
"db_name": "11",
},
"stor_db": {
"db_password": "CGRateS.org",
},
"rals": {
"enabled": true,
},
"schedulers": {
"enabled": true,
},
"apiers": {
"enabled": true,
"scheduler_conns": ["*internal"],
},
}

View File

@@ -0,0 +1,106 @@
{
"general": {
"log_level": 7,
"node_id": "InternalEngine",
},
"listen": {
"rpc_json": ":2012",
"rpc_gob": ":2013",
"http": ":2080",
},
"rpc_conns": {
"conn1": {
"strategy": "*first",
"conns": [{"address": "127.0.0.1:2032", "transport":"*json"}],
},
"conn2": {
"strategy": "*broadcast_sync",
"conns": [
{"address": "127.0.0.1:2022", "transport":"*json"},
{"address": "127.0.0.1:2032", "transport":"*json"}
],
},
"connCache": {
"strategy": "*broadcast",
"conns": [
{"address": "127.0.0.1:2022", "transport":"*json"},
{"address": "127.0.0.1:2032", "transport":"*json"}
],
}
},
"data_db": {
"db_type": "*internal",
"remote_conns": ["conn1"],
"replication_conns": ["conn2"],
"items":{
"*accounts":{"remote":false,"replicate":true},
"*reverse_destinations": {"remote":false,"replicate":true},
"*destinations": {"remote":false,"replicate":true},
"*rating_plans": {"remote":false,"replicate":true},
"*rating_profiles":{"remote":false,"replicate":true},
"*actions":{"remote":false,"replicate":true},
"*action_plans": {"remote":false,"replicate":true},
"*account_action_plans":{"remote":false,"replicate":true},
"*action_triggers":{"remote":false,"replicate":true},
"*shared_groups":{"remote":false,"replicate":true},
"*timings": {"remote":false,"replicate":true},
"*resource_profiles":{"remote":false,"replicate":true},
"*resources":{"remote":false,"replicate":true},
"*statqueue_profiles": {"remote":false,"replicate":true},
"*statqueues": {"remote":false,"replicate":true},
"*threshold_profiles": {"remote":false,"replicate":true},
"*thresholds": {"remote":false,"replicate":true},
"*filters": {"remote":false,"replicate":true},
"*supplier_profiles":{"remote":false,"replicate":true},
"*attribute_profiles":{"remote":false,"replicate":true},
"*charger_profiles": {"remote":false,"replicate":true},
"*dispatcher_profiles":{"remote":false,"replicate":true},
"*dispatcher_hosts":{"remote":false,"replicate":true},
"*filter_indexes" :{"remote":false,"replicate":true},
"*load_ids":{"remote":false,"replicate":true},
},
},
"stor_db": {
"db_type": "*internal",
},
"rals": {
"enabled": true,
},
"thresholds": {
"enabled": true,
"store_interval": "-1",
},
"resources": {
"enabled": true,
"store_interval": "-1",
"thresholds_conns": ["*internal"],
},
"schedulers": {
"enabled": true,
},
"apiers": {
"enabled": true,
"scheduler_conns": ["*internal"],
"caches_conns":["connCache"],
},
}

View File

@@ -0,0 +1,104 @@
{
"general": {
"log_level": 7,
"node_id": "InternalEngine",
},
"listen": {
"rpc_json": ":2012",
"rpc_gob": ":2013",
"http": ":2080",
},
"rpc_conns": {
"conn1": {
"strategy": "*first",
"conns": [{"address": "127.0.0.1:2033", "transport":"*gob"}],
},
"conn2": {
"strategy": "*broadcast",
"conns": [
{"address": "127.0.0.1:2023", "transport":"*gob"},
{"address": "127.0.0.1:2033", "transport":"*gob"}
],
}
},
"data_db": {
"db_type": "*internal",
"remote_conns": ["conn1"],
"replication_conns": ["conn2"],
"items":{
"*accounts":{"remote":true,"replicate":true},
"*reverse_destinations": {"remote":true,"replicate":true},
"*destinations": {"remote":true,"replicate":true},
"*rating_plans": {"remote":true,"replicate":true},
"*rating_profiles":{"remote":true,"replicate":true},
"*actions":{"remote":true,"replicate":true},
"*action_plans": {"remote":true,"replicate":true},
"*account_action_plans":{"remote":true,"replicate":true},
"*action_triggers":{"remote":true,"replicate":true},
"*shared_groups":{"remote":true,"replicate":true},
"*timings": {"remote":true,"replicate":true},
"*resource_profiles":{"remote":true,"replicate":true},
"*resources":{"remote":true,"replicate":true},
"*statqueue_profiles": {"remote":true,"replicate":true},
"*statqueues": {"remote":true,"replicate":true},
"*threshold_profiles": {"remote":true,"replicate":true},
"*thresholds": {"remote":true,"replicate":true},
"*filters": {"remote":true,"replicate":true},
"*supplier_profiles":{"remote":true,"replicate":true},
"*attribute_profiles":{"remote":true,"replicate":true},
"*charger_profiles": {"remote":true,"replicate":true},
"*dispatcher_profiles":{"remote":true,"replicate":true},
"*dispatcher_hosts":{"remote":true,"replicate":true},
"*filter_indexes" :{"remote":true,"replicate":true},
"*load_ids":{"remote":true,"replicate":true},
},
},
"stor_db": {
"db_type": "*internal",
},
"rals": {
"enabled": true,
},
"thresholds": {
"enabled": true,
"store_interval": "-1",
},
"resources": {
"enabled": true,
"store_interval": "-1",
"thresholds_conns": ["*internal"],
},
"stats": {
"enabled": false,
"store_interval": "-1",
},
"schedulers": {
"enabled": true,
},
"apiers": {
"enabled": true,
"scheduler_conns": ["*internal"],
},
}