Updated tests for dispatchers and registrarc

This commit is contained in:
Trial97
2021-12-22 16:56:13 +02:00
committed by Dan Christian Bogos
parent b9a97ba9d2
commit 5953eec22a
25 changed files with 158 additions and 183 deletions

View File

@@ -60,7 +60,8 @@
"routes": {
"enabled": true,
"rals_conns": ["*internal"]
"rates_conns": ["*internal"],
"accounts_conns": ["*internal"],
},
"stats": {

View File

@@ -55,7 +55,8 @@
"routes": {
"enabled": true,
"rals_conns": ["*internal"],
"rates_conns": ["*internal"],
"accounts_conns": ["*internal"],
},
"stats": {

View File

@@ -59,7 +59,8 @@
"routes": {
"enabled": true,
"rals_conns": ["*internal"],
"rates_conns": ["*internal"],
"accounts_conns": ["*internal"],
},
"stats": {

View File

@@ -56,7 +56,8 @@
"routes": {
"enabled": true,
"rals_conns": ["*internal"],
"rates_conns": ["*internal"],
"accounts_conns": ["*internal"],
},
"stats": {

View File

@@ -63,7 +63,8 @@
"routes": {
"enabled": true,
"rals_conns": ["*internal"]
"rates_conns": ["*internal"],
"accounts_conns": ["*internal"],
},
"stats": {

View File

@@ -61,7 +61,8 @@
"routes": {
"enabled": true,
"rals_conns": ["*internal"],
"rates_conns": ["*internal"],
"accounts_conns": ["*internal"],
},
"stats": {

View File

@@ -46,4 +46,14 @@
"enabled": true,
},
"loaders": [
{
"id": "*default",
"enabled": true,
"tenant": "cgrates.org",
"lockfile_path": ".cgr.lck",
"tp_in_dir": "/usr/share/cgrates/tariffplans/testit",
"tp_out_dir": "",
},
],
}

View File

@@ -43,4 +43,15 @@
"enabled": true,
},
"loaders": [
{
"id": "*default",
"enabled": true,
"tenant": "cgrates.org",
"lockfile_path": ".cgr.lck",
"tp_in_dir": "/usr/share/cgrates/tariffplans/testit",
"tp_out_dir": "",
},
],
}

View File

@@ -1,10 +1,3 @@
#Id,ConnectFee,Rate,RateUnit,RateIncrement,GroupIntervalStart
RT_10CNT,0.2,0.1,60s,60s,0s
RT_10CNT,0,0.05,60s,1s,60s
RT_20CNT,0.4,0.2,60s,60s,0s
RT_20CNT,0,0.1,60s,1s,60s
RT_40CNT,0.8,0.4,60s,30s,0s
RT_40CNT,0,0.2,60s,10s,60s
RT_1CNT,0,0.01,60s,60s,0s
RT_1CNT_PER_SEC,0,0.01,1s,1s,0s
RT_GENERIC_1,0,1,1,1,0
#Tenant,ID,FilterIDs,Weights,MinCost,MaxCost,MaxCostStrategy,RateID,RateFilterIDs,RateActivationStart,RateWeights,RateBlocker,RateIntervalStart,RateFixedFee,RateRecurrentFee,RateUnit,RateIncrement
cgrates.org,RP_SPECIAL_1002,,;0,0.1,0.6,*free,RT_WEEK,,"* * * * *",;0,false,0s,,0.12,1m,1m
cgrates.org,RP_RETAIL1,,;0,0.1,0.6,*free,RT_WEEK,,"* * * * *",;0,false,0s,,0.12,1m,1m
1 #Id #Tenant ConnectFee ID Rate FilterIDs Weights MinCost GroupIntervalStart MaxCost MaxCostStrategy RateID RateFilterIDs RateActivationStart RateWeights RateBlocker RateIntervalStart RateFixedFee RateRecurrentFee RateUnit RateIncrement
2 RT_10CNT cgrates.org 0.2 RP_SPECIAL_1002 0.1 ;0 0.1 0s 0.6 *free RT_WEEK * * * * * ;0 false 0s 0.12 60s 1m 60s 1m
3 RT_10CNT cgrates.org 0 RP_RETAIL1 0.05 ;0 0.1 60s 0.6 *free RT_WEEK * * * * * ;0 false 0s 0.12 60s 1m 1s 1m
RT_20CNT 0.4 0.2 0s 60s 60s
RT_20CNT 0 0.1 60s 60s 1s
RT_40CNT 0.8 0.4 0s 60s 30s
RT_40CNT 0 0.2 60s 60s 10s
RT_1CNT 0 0.01 0s 60s 60s
RT_1CNT_PER_SEC 0 0.01 0s 1s 1s
RT_GENERIC_1 0 1 0 1 1

View File

@@ -0,0 +1,10 @@
#Id,ConnectFee,Rate,RateUnit,RateIncrement,GroupIntervalStart
RT_10CNT,0.2,0.1,60s,60s,0s
RT_10CNT,0,0.05,60s,1s,60s
RT_20CNT,0.4,0.2,60s,60s,0s
RT_20CNT,0,0.1,60s,1s,60s
RT_40CNT,0.8,0.4,60s,30s,0s
RT_40CNT,0,0.2,60s,10s,60s
RT_1CNT,0,0.01,60s,60s,0s
RT_1CNT_PER_SEC,0,0.01,1s,1s,0s
RT_GENERIC_1,0,1,1,1,0

View File

@@ -0,0 +1,3 @@
#Tenant,ID,FilterIDs,Weights,MinCost,MaxCost,MaxCostStrategy,RateID,RateFilterIDs,RateActivationStart,RateWeights,RateBlocker,RateIntervalStart,RateFixedFee,RateRecurrentFee,RateUnit,RateIncrement
cgrates.org,RP_1002_LOW,,;0,0.1,0.6,*free,RT_WEEK,,"* * * * *",;0,false,0s,,0.10,1m,1m
cgrates.org,RP_1002,,;0,0.1,0.6,*free,RT_WEEK,,"* * * * *",;0,false,0s,,0.12,1m,1m
1 #Tenant ID FilterIDs Weights MinCost MaxCost MaxCostStrategy RateID RateFilterIDs RateActivationStart RateWeights RateBlocker RateIntervalStart RateFixedFee RateRecurrentFee RateUnit RateIncrement
2 cgrates.org RP_1002_LOW ;0 0.1 0.6 *free RT_WEEK * * * * * ;0 false 0s 0.10 1m 1m
3 cgrates.org RP_1002 ;0 0.1 0.6 *free RT_WEEK * * * * * ;0 false 0s 0.12 1m 1m