mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
Fixed one test in config
This commit is contained in:
committed by
Dan Christian Bogos
parent
44fbdceecd
commit
4c323e8839
@@ -78,7 +78,7 @@ func radFieldOutVal(pkt *radigo.Packet, agReq *AgentRequest,
|
||||
cfgFld.Padding = utils.MetaRight
|
||||
case utils.META_CONSTANT:
|
||||
outVal, err = cfgFld.Value.ParseValue(utils.EmptyString)
|
||||
case utils.META_COMPOSED:
|
||||
case utils.META_COMPOSED, utils.MetaVariable:
|
||||
outVal = radComposedFieldValue(pkt, agReq, cfgFld.Value)
|
||||
default:
|
||||
return utils.EmptyString, fmt.Errorf("unsupported configuration field type: <%s>", cfgFld.Type)
|
||||
|
||||
@@ -177,7 +177,7 @@ func TestMfHttpAgentMultipleFields(t *testing.T) {
|
||||
ReplyFields: []*FCTemplate{{
|
||||
Tag: "CDR_ID",
|
||||
Path: "CDR_RESPONSE.CDR_ID",
|
||||
Type: "*composed",
|
||||
Type: "*variable",
|
||||
Value: NewRSRParsersMustCompile("~*req.CDR_ID", true, utils.INFIELD_SEP),
|
||||
Mandatory: true,
|
||||
}},
|
||||
|
||||
Reference in New Issue
Block a user