Add test for httpagent combined values

This commit is contained in:
TeoV
2018-11-06 10:43:53 -05:00
committed by Dan Christian Bogos
parent 2c5d4a457b
commit b8db95518a
2 changed files with 5 additions and 0 deletions

View File

@@ -167,6 +167,7 @@ func testHAitAuthDryRun(t *testing.T) {
eXml := []byte(`<?xml version="1.0" encoding="UTF-8"?>
<response>
<Allow>1</Allow>
<Concatenated>234/Val1</Concatenated>
<MaxDuration>1200</MaxDuration>
</response>`)
if body, err := ioutil.ReadAll(rply.Body); err != nil {

View File

@@ -21,6 +21,10 @@
"reply_fields":[
{"tag": "Allow", "field_id": "response.Allow", "type": "*constant",
"value": "1", "mandatory": true},
{"tag": "Concatenated1", "field_id": "Concatenated", "type": "*composed",
"value": "~*req.MCC;/", "mandatory": true},
{"tag": "Concatenated2", "field_id": "Concatenated", "type": "*composed",
"value": "Val1"},
{"tag": "MaxDuration", "field_id": "response.MaxDuration", "type": "*constant",
"value": "1200", "blocker": true},
{"tag": "Unused", "field_id": "response.Unused", "type": "*constant",