Updated SessionS.V1ProcessEvent integration tests

This commit is contained in:
Trial97
2020-07-15 13:06:48 +03:00
committed by Dan Christian Bogos
parent b8e6678ca1
commit aaba103bd8
25 changed files with 122 additions and 108 deletions

View File

@@ -28,9 +28,9 @@
"value": "*now", "mandatory": true},
{"tag": "Category", "path": "*cgreq.Category", "type": "*variable",
"value": "call", "mandatory": true},
{"tag": "STIRPublicKeyPath", "path": "*opts.STIRPublicKeyPath", "type": "*constant",
{"tag": "STIRPublicKeyPath", "path": "*opts.*stirPublicKeyPath", "type": "*constant",
"value": "/usr/share/cgrates/stir/stir_pubkey.pem", "mandatory": true},
{"tag": "STIRPrivateKeyPath", "path": "*opts.STIRPrivateKeyPath", "type": "*constant",
{"tag": "STIRPrivateKeyPath", "path": "*opts.*stirPrivateKeyPath", "type": "*constant",
"value": "/usr/share/cgrates/stir/stir_privatekey.pem", "mandatory": true},
],
"reply_fields":[
@@ -39,7 +39,7 @@
{
"id": "RoutesQueryOneRoute",
"filters": ["*string:~*vars.Method:INVITE",
"*gte:~*cgrep.Routes.Count:1",
"*gte:~*cgrep.Routes[*raw].Count:1",
],
"flags": ["*none","*continue"], // do not send request to CGRateS
"reply_fields":[
@@ -48,57 +48,57 @@
{"tag": "Contact", "path": "*rep.Contact", "type": "*composed",
"value":"\"1003\" <sip:"},
{"tag": "Contact", "path": "*rep.Contact", "type": "*composed",
"value": "~*cgrep.Routes.SortedRoutes[0].RouteParameters"},
"value": "~*cgrep.Routes[*raw].SortedRoutes[0].RouteParameters"},
{"tag": "Contact", "path": "*rep.Contact", "type": "*composed",
"value":"`;q=0.7; expires=3600;cgr_cost=`"},
{"tag": "Contact", "path": "*rep.Contact", "type": "*composed",
"value":"~*cgrep.Routes.SortedRoutes[0].SortingData.Cost"},
"value":"~*cgrep.Routes[*raw].SortedRoutes[0].SortingData.Cost"},
{"tag": "Contact", "path": "*rep.Contact", "type": "*composed",
"value":"`;cgr_maxusage=`"},
{"tag": "Contact", "path": "*rep.Contact", "type": "*composed",
"value":"~*cgrep.Routes.SortedRoutes[0].SortingData.MaxUsage"},
"value":"~*cgrep.Routes[*raw].SortedRoutes[0].SortingData.MaxUsage"},
{"tag": "Contact", "path": "*rep.Contact", "type": "*composed",
"value":"`;cgr_route=`"},
{"tag": "Contact", "path": "*rep.Contact", "type": "*composed",
"value":"~*cgrep.Routes.SortedRoutes[0].RouteID"},
"value":"~*cgrep.Routes[*raw].SortedRoutes[0].RouteID"},
{"tag": "Contact", "path": "*rep.Contact", "type": "*composed",
"value":"`>`"},
{"tag": "X-Identity", "path": "*rep.X-Identity", "type": "*variable",
"value":"~*cgrep.STIRIdentity.<~*cgrep.Routes.SortedRoutes[0].RouteID>"},
"value":"~*cgrep.STIRIdentity.<~*cgrep.Routes[*raw].SortedRoutes[0].RouteID>"},
]
},
{
"id": "RoutesQueryTwoRoute",
"filters": ["*string:~*vars.Method:INVITE",
"*gte:~*cgrep.Routes.Count:2",
"*gte:~*cgrep.Routes[*raw].Count:2",
],
"flags": ["*none","*continue"], // do not send request to CGRateS
"reply_fields":[
{"tag": "Contact", "path": "*rep.Contact", "type": "*composed",
"value":",\"1004\" <sip:"},
{"tag": "Contact", "path": "*rep.Contact", "type": "*composed",
"value": "~*cgrep.Routes.SortedRoutes[1].RouteParameters"},
"value": "~*cgrep.Routes[*raw].SortedRoutes[1].RouteParameters"},
{"tag": "Contact", "path": "*rep.Contact", "type": "*composed",
"value":"`;q=0.7; expires=3600;cgr_cost=`"},
{"tag": "Contact", "path": "*rep.Contact", "type": "*composed",
"value":"~*cgrep.Routes.SortedRoutes[1].SortingData.Cost"},
"value":"~*cgrep.Routes[*raw].SortedRoutes[1].SortingData.Cost"},
{"tag": "Contact", "path": "*rep.Contact", "type": "*composed",
"value":"`;cgr_maxusage=`"},
{"tag": "Contact", "path": "*rep.Contact", "type": "*composed",
"value":"~*cgrep.Routes.SortedRoutes[1].SortingData.MaxUsage"},
"value":"~*cgrep.Routes[*raw].SortedRoutes[1].SortingData.MaxUsage"},
{"tag": "Contact", "path": "*rep.Contact", "type": "*composed",
"value":"`;cgr_route=`"},
{"tag": "Contact", "path": "*rep.Contact", "type": "*composed",
"value":"~*cgrep.Routes.SortedRoutes[1].RouteID"},
"value":"~*cgrep.Routes[*raw].SortedRoutes[1].RouteID"},
{"tag": "Contact", "path": "*rep.Contact", "type": "*composed",
"value":"`>`"},
@@ -107,29 +107,29 @@
{
"id": "RoutesQueryThreeRoute",
"filters": ["*string:~*vars.Method:INVITE",
"*gte:~*cgrep.Routes.Count:2",
"*gte:~*cgrep.Routes[*raw].Count:2",
],
"flags": ["*none","*continue"], // do not send request to CGRateS
"reply_fields":[
{"tag": "Contact", "path": "*rep.Contact", "type": "*composed",
"value":",\"1005\" <sip:"},
{"tag": "Contact", "path": "*rep.Contact", "type": "*composed",
"value": "~*cgrep.Routes.SortedRoutes[2].RouteParameters"},
"value": "~*cgrep.Routes[*raw].SortedRoutes[2].RouteParameters"},
{"tag": "Contact", "path": "*rep.Contact", "type": "*composed",
"value":"`;q=0.7; expires=3600;cgr_cost=`"},
{"tag": "Contact", "path": "*rep.Contact", "type": "*composed",
"value":"~*cgrep.Routes.SortedRoutes[2].SortingData.Cost"},
"value":"~*cgrep.Routes[*raw].SortedRoutes[2].SortingData.Cost"},
{"tag": "Contact", "path": "*rep.Contact", "type": "*composed",
"value":"`;cgr_maxusage=`"},
{"tag": "Contact", "path": "*rep.Contact", "type": "*composed",
"value":"~*cgrep.Routes.SortedRoutes[2].SortingData.MaxUsage"},
"value":"~*cgrep.Routes[*raw].SortedRoutes[2].SortingData.MaxUsage"},
{"tag": "Contact", "path": "*rep.Contact", "type": "*composed",
"value":"`;cgr_route=`"},
{"tag": "Contact", "path": "*rep.Contact", "type": "*composed",
"value":"~*cgrep.Routes.SortedRoutes[2].RouteID"},
"value":"~*cgrep.Routes[*raw].SortedRoutes[2].RouteID"},
{"tag": "Contact", "path": "*rep.Contact", "type": "*composed",
"value":"`>`"},