Revise tests

This commit is contained in:
arberkatellari
2025-06-04 13:01:43 +02:00
committed by Dan Christian Bogos
parent 9b08994b5e
commit 746846eaaf
29 changed files with 273 additions and 70 deletions

View File

@@ -2,7 +2,6 @@
"general": {
"log_level": 7,
"reply_timeout": "10s",
},
"data_db": {

View File

@@ -0,0 +1,65 @@
{
// Real-time Online/Offline Charging System (OCS) for Telecom & ISP environments
// Copyright (C) ITsysCOM GmbH
"general": {
"log_level": 7,
"node_id":"BackupSessionsNode",
},
"data_db": {
"db_type": "*internal",
"opts":{
"internalDBDumpPath": "/tmp/internal_db/datadb",
"internalDBDumpInterval": "-1",
"internalDBRewriteInterval": "1s",
}
},
"stor_db": {
"db_type": "*internal",
"opts":{
"internalDBDumpPath": "/tmp/internal_db/stordb",
"internalDBDumpInterval": "-1",
"internalDBRewriteInterval": "-2", //rewrite on shutdown
}
},
"schedulers": {
"enabled": true,
},
"rals": {
"enabled": true,
},
"cdrs": {
"enabled": true,
},
"chargers": {
"enabled": true,
"attributes_conns": ["*localhost"],
},
"sessions": {
"enabled": true,
"rals_conns": ["*localhost"],
"cdrs_conns": ["*localhost"],
"chargers_conns": ["*localhost"],
"default_usage":{
"*voice":"4s"
},
"backup_interval": "-1",
},
"attributes": {
"enabled": true,
},
"apiers": {
"enabled": true,
"scheduler_conns": ["*localhost"],
}
}

View File

@@ -0,0 +1,122 @@
{
"general": {
"log_level": 7,
"reply_timeout": "50s"
},
"listen": {
"rpc_json": ":2012",
"rpc_gob": ":2013",
"http": ":2080"
},
"data_db": {
"db_type": "*internal",
"opts":{
"internalDBDumpPath": "/tmp/internal_db/datadb",
"internalDBDumpInterval": "-1"
}
},
"stor_db": {
"db_type": "*internal",
"opts":{
"internalDBDumpPath": "/tmp/internal_db/stordb",
"internalDBDumpInterval": "-1"
}
},
"rals": {
"enabled": true,
"thresholds_conns": ["*internal"],
"max_increments":3000000
},
"schedulers": {
"enabled": true,
"cdrs_conns": ["*internal"],
"stats_conns": ["*localhost"]
},
"cdrs": {
"enabled": true,
"chargers_conns":["*internal"],
},
"attributes": {
"enabled": true,
"stats_conns": ["*localhost"],
"resources_conns": ["*localhost"],
"apiers_conns": ["*localhost"]
},
"chargers": {
"enabled": true,
"attributes_conns": ["*internal"]
},
"resources": {
"enabled": true,
"store_interval": "-1",
"thresholds_conns": ["*internal"]
},
"stats": {
"enabled": true,
"store_interval": "-1",
"thresholds_conns": ["*internal"]
},
"thresholds": {
"enabled": true,
"store_interval": "-1",
"sessions_conns": ["*internal"],
"apiers_conns": ["*internal"]
},
"routes": {
"enabled": true,
"prefix_indexed_fields":["*req.Destination"],
"stats_conns": ["*internal"],
"resources_conns": ["*internal"],
"rals_conns": ["*internal"]
},
"sessions": {
"enabled": true,
"routes_conns": ["*internal"],
"resources_conns": ["*internal"],
"attributes_conns": ["*internal"],
"rals_conns": ["*internal"],
"cdrs_conns": ["*internal"],
"chargers_conns": ["*internal"]
},
"apiers": {
"enabled": true,
"scheduler_conns": ["*internal"]
},
"filters": {
"stats_conns": ["*localhost"],
"resources_conns": ["*internal"],
"apiers_conns": ["*internal"]
}
}

View File

@@ -1,2 +1,2 @@
#Tenant[0],Id[1],FilterIDs[2],ActivationInterval[3],QueueLength[4],TTL[5],MinItems[6],Metrics[7],MetricFilterIDs[8],Stored[9],Blocker[10],Weight[11],ThresholdIDs[12]
cgrates.org,Stat_1,FLTR_STAT_1,2014-07-29T15:00:00Z,100,10s,0,*acd;*tcd;*asr,,true,true,30,*none
cgrates.org,Stat_1,FLTR_STAT_1,2014-07-29T15:00:00Z,100,10s,0,*acd;*tcd;*asr,,false,true,30,*none
1 #Tenant[0] Id[1] FilterIDs[2] ActivationInterval[3] QueueLength[4] TTL[5] MinItems[6] Metrics[7] MetricFilterIDs[8] Stored[9] Blocker[10] Weight[11] ThresholdIDs[12]
2 cgrates.org Stat_1 FLTR_STAT_1 2014-07-29T15:00:00Z 100 10s 0 *acd;*tcd;*asr true false true 30 *none

View File

@@ -1,6 +1,6 @@
#Tenant[0],Id[1],FilterIDs[2],ActivationInterval[3],QueueLength[4],TTL[5],MinItems[6],Metrics[7],MetricFilterIDs[8],Stored[9],Blocker[10],Weight[11],ThresholdIDs[12]
cgrates.org,Stat_1,FLTR_STAT_1,2014-07-29T15:00:00Z,100,10s,0,*acd;*tcd;*asr,,true,true,30,*none
cgrates.org,Stat_1_1,FLTR_STAT_1_1,2014-07-29T15:00:00Z,100,1s,0,*acd;*tcd;*pdd,,true,true,30,*none
cgrates.org,Stat_1,FLTR_STAT_1,2014-07-29T15:00:00Z,100,10s,0,*acd;*tcd;*asr,,false,true,30,*none
cgrates.org,Stat_1_1,FLTR_STAT_1_1,2014-07-29T15:00:00Z,100,1s,0,*acd;*tcd;*pdd,,false,true,30,*none
cgrates.org,Stat_2,FLTR_STAT_2,2014-07-29T15:00:00Z,100,1s,0,*acd;*tcd;*asr,,false,true,30,*none
cgrates.org,Stat_3,FLTR_STAT_3,2014-07-29T15:00:00Z,100,1s,0,*acd;*tcd;*asr,,false,true,30,*none
cgrates.org,Stat_Supplier1,*string:~*req.StatID:Stat_Supplier1,2014-07-29T15:00:00Z,100,1s,0,*sum#~*req.LoadReq,,true,true,30,*none
1 #Tenant[0] Id[1] FilterIDs[2] ActivationInterval[3] QueueLength[4] TTL[5] MinItems[6] Metrics[7] MetricFilterIDs[8] Stored[9] Blocker[10] Weight[11] ThresholdIDs[12]
2 cgrates.org Stat_1 FLTR_STAT_1 2014-07-29T15:00:00Z 100 10s 0 *acd;*tcd;*asr true false true 30 *none
3 cgrates.org Stat_1_1 FLTR_STAT_1_1 2014-07-29T15:00:00Z 100 1s 0 *acd;*tcd;*pdd true false true 30 *none
4 cgrates.org Stat_2 FLTR_STAT_2 2014-07-29T15:00:00Z 100 1s 0 *acd;*tcd;*asr false true 30 *none
5 cgrates.org Stat_3 FLTR_STAT_3 2014-07-29T15:00:00Z 100 1s 0 *acd;*tcd;*asr false true 30 *none
6 cgrates.org Stat_Supplier1 *string:~*req.StatID:Stat_Supplier1 2014-07-29T15:00:00Z 100 1s 0 *sum#~*req.LoadReq true true 30 *none