Added tests for dataconverters on attributes

This commit is contained in:
gezimbll
2023-10-10 10:56:03 -04:00
committed by Dan Christian Bogos
parent 947fc13e01
commit 055578b642
4 changed files with 286 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
#Tenant,ID,Context,FilterIDs,ActivationInterval,AttributeFilterIDs,Path,Type,Value,Blocker,Weight
cgrates.org,ATTR_VARIABLE,*any,*string:~*req.EventName:CallTest,,,*req.Category,*variable,~*req.EventName{*strip:*suffix:*char:Test},false,20
cgrates.org,ATTR_VARIABLE,,,,,*req.AnswerTime,*variable,~*req.AnswerTime{*time_string:2006-01-02 15:04:05.999999999 -0700 MST},,
cgrates.org,ATTR_SEC,*any,,,,*req.Cost,*variable,~*req.Cost{*round:2:*up},false,10
cgrates.org,ATTR_STAT,*any,*string:~*req.EventName:StatsTest,,,*req.AcdMetric,*variable,~*stats.Stat_1.*acd{*duration_seconds&*round:0:*up},false,20
1 #Tenant ID Context FilterIDs ActivationInterval AttributeFilterIDs Path Type Value Blocker Weight
2 cgrates.org ATTR_VARIABLE *any *string:~*req.EventName:CallTest *req.Category *variable ~*req.EventName{*strip:*suffix:*char:Test} false 20
3 cgrates.org ATTR_VARIABLE *req.AnswerTime *variable ~*req.AnswerTime{*time_string:2006-01-02 15:04:05.999999999 -0700 MST}
4 cgrates.org ATTR_SEC *any *req.Cost *variable ~*req.Cost{*round:2:*up} false 10
5 cgrates.org ATTR_STAT *any *string:~*req.EventName:StatsTest *req.AcdMetric *variable ~*stats.Stat_1.*acd{*duration_seconds&*round:0:*up} false 20

View File

@@ -0,0 +1,2 @@
#Tenant[0],ID[1],Type[2],Path[3],Values[4],ActivationInterval[5]
cgrates.org,FLTR_STAT_1,*string,~*req.Account,1001,2014-07-29T15:00:00Z
1 #Tenant[0] ID[1] Type[2] Path[3] Values[4] ActivationInterval[5]
2 cgrates.org FLTR_STAT_1 *string ~*req.Account 1001 2014-07-29T15:00:00Z

View File

@@ -0,0 +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,,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 false true 30 *none