mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-20 06:38:45 +05:00
Updated APIBan precache integration tests
This commit is contained in:
committed by
Dan Christian Bogos
parent
31c635e3f7
commit
03359b0ae6
@@ -58,7 +58,6 @@
|
||||
"*dispatcher_profiles" : {"limit": 10000, "ttl":"0s", "precache": true},
|
||||
"*dispatcher_hosts" : {"limit": 10000, "ttl":"0s", "precache": true},
|
||||
"*dispatcher_routes" : {"limit": 10000, "ttl":"0s", "precache": false},
|
||||
"*apiban" : {"limit": 254, "ttl":"0s", "precache": true}
|
||||
},
|
||||
},
|
||||
|
||||
@@ -90,9 +89,4 @@
|
||||
},
|
||||
|
||||
|
||||
"apiban": {
|
||||
"keys": ["4c8140a0d7ec506e03ac59283eea8a9a", "559bbfa6808558b3197bf4960bbc1635", "2efdcd5d3d1b3a3ab4d71636b7b6d847"],
|
||||
},
|
||||
|
||||
|
||||
}
|
||||
|
||||
98
data/conf/samples/precache/tutmongo_apiban/cgrates.json
Normal file
98
data/conf/samples/precache/tutmongo_apiban/cgrates.json
Normal file
@@ -0,0 +1,98 @@
|
||||
{
|
||||
// CGRateS Configuration file
|
||||
|
||||
|
||||
"general": {
|
||||
"log_level": 7,
|
||||
"reply_timeout": "30s",
|
||||
},
|
||||
|
||||
|
||||
"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,
|
||||
},
|
||||
|
||||
|
||||
"caches":{
|
||||
"partitions": {
|
||||
"*destinations": {"limit": 10000, "ttl":"0s", "precache": true},
|
||||
"*reverse_destinations": {"limit": 10000, "ttl":"0s", "precache": true},
|
||||
"*rating_plans": {"limit": 10000, "ttl":"0s","precache": true},
|
||||
"*rating_profiles": {"limit": 10000, "ttl":"0s", "precache": true},
|
||||
"*actions": {"limit": 10000, "ttl":"0s", "precache": true},
|
||||
"*action_plans": {"limit": 10000, "ttl":"0s", "precache": true},
|
||||
"*account_action_plans": {"limit": 10000, "ttl":"0s", "precache": true},
|
||||
"*action_triggers": {"limit": 10000, "ttl":"0s", "precache": true},
|
||||
"*shared_groups": {"limit": 10000, "ttl":"0s", "precache": true},
|
||||
"*resource_profiles": {"limit": 10000, "ttl":"0s", "precache": true},
|
||||
"*resources": {"limit": 10000, "ttl":"0s", "precache": true},
|
||||
"*statqueues": {"limit": 10000, "ttl":"0s", "precache": true},
|
||||
"*statqueue_profiles": {"limit": 10000, "ttl":"0s", "precache": true},
|
||||
"*thresholds": {"limit": 10000, "ttl":"0s", "precache": true},
|
||||
"*threshold_profiles": {"limit": 10000, "ttl":"0s", "precache": true},
|
||||
"*filters": {"limit": 10000, "ttl":"0s", "precache": true},
|
||||
"*route_profiles": {"limit": 10000, "ttl":"0s", "precache": true},
|
||||
"*attribute_profiles": {"limit": 10000, "ttl":"0s", "precache": true},
|
||||
"*resource_filter_indexes" :{"limit": 10000, "ttl":"0s", "precache": true},
|
||||
"*stat_filter_indexes" : {"limit": 10000, "ttl":"0s", "precache": true},
|
||||
"*threshold_filter_indexes" : {"limit": 10000, "ttl":"0s", "precache": true},
|
||||
"*route_filter_indexes" : {"limit": 10000, "ttl":"0s", "precache": true},
|
||||
"*attribute_filter_indexes" : {"limit": 10000, "ttl":"0s", "precache": true},
|
||||
"*charger_filter_indexes" : {"limit": 10000, "ttl":"0s", "precache": true},
|
||||
"*dispatcher_profiles" : {"limit": 10000, "ttl":"0s", "precache": true},
|
||||
"*dispatcher_hosts" : {"limit": 10000, "ttl":"0s", "precache": true},
|
||||
"*dispatcher_routes" : {"limit": 10000, "ttl":"0s", "precache": false},
|
||||
"*apiban" : {"limit": 254, "ttl":"0s", "precache": true}
|
||||
},
|
||||
},
|
||||
|
||||
|
||||
"rals": {
|
||||
"enabled": true,
|
||||
},
|
||||
|
||||
|
||||
"schedulers": {
|
||||
"enabled": true,
|
||||
},
|
||||
|
||||
|
||||
"migrator": {
|
||||
"out_datadb_type": "mongo",
|
||||
"out_datadb_port": "27017",
|
||||
"out_datadb_name": "10",
|
||||
"out_stordb_type": "mongo",
|
||||
"out_stordb_port": "27017",
|
||||
"out_stordb_name": "cgrates",
|
||||
"users_filters":["Account"],
|
||||
},
|
||||
|
||||
|
||||
"apiers": {
|
||||
"enabled": true,
|
||||
"scheduler_conns": ["*internal"],
|
||||
},
|
||||
|
||||
|
||||
"apiban": {
|
||||
"keys": ["8b0622b2d29a1f1e43c648ac45737204","2efdcd5d3d1b3a3ab4d71636b7b6d847","4c8140a0d7ec506e03ac59283eea8a9a","559bbfa6808558b3197bf4960bbc1635"],
|
||||
},
|
||||
|
||||
|
||||
}
|
||||
@@ -54,7 +54,6 @@
|
||||
"*dispatcher_profiles" : {"limit": 10000, "ttl":"0s", "precache": true},
|
||||
"*dispatcher_hosts" : {"limit": 10000, "ttl":"0s", "precache": true},
|
||||
"*dispatcher_routes" : {"limit": 10000, "ttl":"0s", "precache": false},
|
||||
"*apiban" : {"limit": 254, "ttl":"0s", "precache": true}
|
||||
},
|
||||
},
|
||||
|
||||
@@ -81,9 +80,4 @@
|
||||
},
|
||||
|
||||
|
||||
"apiban": {
|
||||
"keys": ["4c8140a0d7ec506e03ac59283eea8a9a", "559bbfa6808558b3197bf4960bbc1635", "2efdcd5d3d1b3a3ab4d71636b7b6d847"],
|
||||
},
|
||||
|
||||
|
||||
}
|
||||
|
||||
89
data/conf/samples/precache/tutmysql_apiban/cgrates.json
Normal file
89
data/conf/samples/precache/tutmysql_apiban/cgrates.json
Normal file
@@ -0,0 +1,89 @@
|
||||
{
|
||||
// CGRateS Configuration file
|
||||
//
|
||||
|
||||
|
||||
"general": {
|
||||
"log_level": 7,
|
||||
},
|
||||
|
||||
|
||||
"listen": {
|
||||
"rpc_json": ":2012",
|
||||
"rpc_gob": ":2013",
|
||||
"http": ":2080",
|
||||
},
|
||||
|
||||
"data_db": { // database used to store runtime data (eg: accounts, cdr stats)
|
||||
"db_type": "redis", // data_db type: <redis|mongo>
|
||||
"db_port": 6379, // data_db port to reach the database
|
||||
"db_name": "10", // data_db database name to connect to
|
||||
},
|
||||
|
||||
"stor_db": {
|
||||
"db_password": "CGRateS.org",
|
||||
},
|
||||
|
||||
|
||||
"caches":{
|
||||
"partitions": {
|
||||
"*destinations": {"limit": 10000, "ttl":"0s", "precache": true},
|
||||
"*reverse_destinations": {"limit": 10000, "ttl":"0s", "precache": true},
|
||||
"*rating_plans": {"limit": 10000, "ttl":"0s","precache": true},
|
||||
"*rating_profiles": {"limit": 10000, "ttl":"0s", "precache": true},
|
||||
"*actions": {"limit": 10000, "ttl":"0s", "precache": true},
|
||||
"*action_plans": {"limit": 10000, "ttl":"0s", "precache": true},
|
||||
"*account_action_plans": {"limit": 10000, "ttl":"0s", "precache": true},
|
||||
"*action_triggers": {"limit": 10000, "ttl":"0s", "precache": true},
|
||||
"*shared_groups": {"limit": 10000, "ttl":"0s", "precache": true},
|
||||
"*resource_profiles": {"limit": 10000, "ttl":"0s", "precache": true},
|
||||
"*resources": {"limit": 10000, "ttl":"0s", "precache": true},
|
||||
"*statqueues": {"limit": 10000, "ttl":"0s", "precache": true},
|
||||
"*statqueue_profiles": {"limit": 10000, "ttl":"0s", "precache": true},
|
||||
"*thresholds": {"limit": 10000, "ttl":"0s", "precache": true},
|
||||
"*threshold_profiles": {"limit": 10000, "ttl":"0s", "precache": true},
|
||||
"*filters": {"limit": 10000, "ttl":"0s", "precache": true},
|
||||
"*route_profiles": {"limit": 10000, "ttl":"0s", "precache": true},
|
||||
"*attribute_profiles": {"limit": 10000, "ttl":"0s", "precache": true},
|
||||
"*resource_filter_indexes" :{"limit": 10000, "ttl":"0s", "precache": true},
|
||||
"*stat_filter_indexes" : {"limit": 10000, "ttl":"0s", "precache": true},
|
||||
"*threshold_filter_indexes" : {"limit": 10000, "ttl":"0s", "precache": true},
|
||||
"*route_filter_indexes" : {"limit": 10000, "ttl":"0s", "precache": true},
|
||||
"*attribute_filter_indexes" : {"limit": 10000, "ttl":"0s", "precache": true},
|
||||
"*charger_filter_indexes" : {"limit": 10000, "ttl":"0s", "precache": true},
|
||||
"*dispatcher_profiles" : {"limit": 10000, "ttl":"0s", "precache": true},
|
||||
"*dispatcher_hosts" : {"limit": 10000, "ttl":"0s", "precache": true},
|
||||
"*dispatcher_routes" : {"limit": 10000, "ttl":"0s", "precache": false},
|
||||
"*apiban" : {"limit": 254, "ttl":"0s", "precache": true}
|
||||
},
|
||||
},
|
||||
|
||||
|
||||
"rals": {
|
||||
"enabled": true,
|
||||
},
|
||||
|
||||
|
||||
"schedulers": {
|
||||
"enabled": true,
|
||||
},
|
||||
|
||||
|
||||
"migrator":{
|
||||
"out_stordb_password": "CGRateS.org",
|
||||
"users_filters":["Account"],
|
||||
},
|
||||
|
||||
|
||||
"apiers": {
|
||||
"enabled": true,
|
||||
"scheduler_conns": ["*internal"],
|
||||
},
|
||||
|
||||
|
||||
"apiban": {
|
||||
"keys": ["8b0622b2d29a1f1e43c648ac45737204","2efdcd5d3d1b3a3ab4d71636b7b6d847","4c8140a0d7ec506e03ac59283eea8a9a","559bbfa6808558b3197bf4960bbc1635"],
|
||||
},
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user