Update integration test after adding "templates" section in config

This commit is contained in:
TeoV
2020-08-26 11:19:47 +03:00
committed by Dan Christian Bogos
parent 76d7df0dce
commit 2682ece350
13 changed files with 205 additions and 303 deletions

View File

@@ -38,110 +38,7 @@ With explanations in the comments:
"product_name": "CGRateS", // diameter Product-Name AVP used in replies
"concurrent_requests": -1, // limit the number of active requests processed by the server <-1|0-n>
"synced_conn_requests": false, // process one request at the time per connection
"asr_template": "*asr", // enable AbortSession message being sent to client
// forcing session disconnection from CGRateS side
"templates":{ // message templates which can be injected within request/replies
"*err": [ // *err is used mostly in automatic diameter replies with errors
{
"tag": "SessionId", "path": "*rep.Session-Id",
"type": "*variable", "mandatory": true,
"value": "~*req.Session-Id"
},
{
"tag": "OriginHost", "path": "*rep.Origin-Host",
"type": "*variable", "mandatory": true,
"value": "~*vars.OriginHost"
},
{
"tag": "OriginRealm", "path": "*rep.Origin-Realm",
"type": "*variable", "mandatory": true,
"value": "~*vars.OriginRealm"
},
],
"*cca": [ // *cca is used into CallControlAnswer messages
{
"tag": "SessionId", "path": "*rep.Session-Id",
"type": "*composed", "mandatory": true,
"value": "~*req.Session-Id"
},
{
"tag": "ResultCode", "path": "*rep.Result-Code",
"type": "*constant", "value": "2001"},
{
"tag": "OriginHost", "path": "*rep.Origin-Host",
"type": "*variable", "mandatory": true,
"value": "~*vars.OriginHost"
},
{
"tag": "OriginRealm", "path": "*rep.Origin-Realm",
"type": "*variable", "mandatory": true,
"value": "~*vars.OriginRealm"
},
{
"tag": "AuthApplicationId",
"path": "rep.Auth-Application-Id",
"type": "*variable", "mandatory": true,
"value": "~*vars.*appid"
},
{
"tag": "CCRequestType",
"path": "*rep.CC-Request-Type",
"type": "*variable", "mandatory": true,
"value": "~*req.CC-Request-Type"
},
{
"tag": "CCRequestNumber",
"path": "*rep.CC-Request-Number",
"type": "*variable", "mandatory": true,
"value": "~*req.CC-Request-Number"
},
],
"*asr": [ // *asr is used to build AbortSessionRequest
{
"tag": "SessionId", "path": "*diamreq.Session-Id",
"type": "*variable", "mandatory": true,
"value": "~*req.Session-Id"
},
{
"tag": "OriginHost", "path": "diamreq.Origin-Host",
"type": "*variable", "mandatory": true,
"value": "~*req.Destination-Host"
},
{
"tag": "OriginRealm", "path": "diamreq.Origin-Realm",
"type": "*variable", "mandatory": true,
"value": "~*req.Destination-Realm"
},
{
"tag": "DestinationRealm",
"path": "*diamreq.Destination-Realm",
"type": "*variable", "mandatory": true,
"value": "~*req.Origin-Realm"
},
{
"tag": "DestinationHost",
"path": "*diamreq.Destination-Host",
"type": "*variable", "mandatory": true,
"value": "~*req.Origin-Host"
},
{
"tag": "AuthApplicationId",
"path": "*diamreq.Auth-Application-Id",
"type": "*variable", "mandatory": true,
"value": "~*vars.*appid"
},
{
"tag": "UserName", "path": "*diamreq.User-Name",
"type": "*variable", "mandatory": true,
"value": "~*req.User-Name"
},
{
"tag": "OriginStateID",
"path": "*diamreq.Origin-State-Id",
"type": "*constant", "value": "1"
}
]
},
"asr_template": "*asr", // enable AbortSession message being sent to client
"request_processors": [ // decision logic for message processing
{
"id": "SMSes", // id is used for debug in logs (ie: using *log flag)