mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-23 08:08:45 +05:00
Remove RSRSep opt from general section
- allows RSRParser to be split gracefully from config (was depending on RSRSep, which was retrieved from the global config variable) - default separator (;) was the only one used except for splitting inline attribute values (where ANDSep is used)
This commit is contained in:
committed by
Dan Christian Bogos
parent
c60712f454
commit
36a7d174ab
@@ -107,7 +107,7 @@ func TestDiffReqProcessorJsnCfg(t *testing.T) {
|
||||
},
|
||||
}
|
||||
|
||||
rcv := diffReqProcessorJsnCfg(d, v1, v2, ";")
|
||||
rcv := diffReqProcessorJsnCfg(d, v1, v2)
|
||||
if !reflect.DeepEqual(rcv, expected) {
|
||||
t.Errorf("Expected %v \n but received \n %v", utils.ToJSON(expected), utils.ToJSON(rcv))
|
||||
}
|
||||
@@ -143,7 +143,7 @@ func TestDiffReqProcessorJsnCfg(t *testing.T) {
|
||||
}
|
||||
|
||||
v1 = v2
|
||||
rcv = diffReqProcessorJsnCfg(d, v1, v2, ";")
|
||||
rcv = diffReqProcessorJsnCfg(d, v1, v2)
|
||||
if !reflect.DeepEqual(rcv, expected) {
|
||||
t.Errorf("Expected %v \n but received \n %v", utils.ToJSON(expected), utils.ToJSON(rcv))
|
||||
}
|
||||
@@ -236,7 +236,7 @@ func TestDiffReqProcessorsJsnCfg(t *testing.T) {
|
||||
},
|
||||
}
|
||||
|
||||
rcv := diffReqProcessorsJsnCfg(d, v1, v2, ";")
|
||||
rcv := diffReqProcessorsJsnCfg(d, v1, v2)
|
||||
if !reflect.DeepEqual(rcv, expected) {
|
||||
t.Errorf("Expected %v \n but received \n %v", utils.ToJSON(expected), utils.ToJSON(rcv))
|
||||
}
|
||||
@@ -267,7 +267,7 @@ func TestDiffReqProcessorsJsnCfg(t *testing.T) {
|
||||
},
|
||||
},
|
||||
}
|
||||
rcv = diffReqProcessorsJsnCfg(d, v1, v2, ";")
|
||||
rcv = diffReqProcessorsJsnCfg(d, v1, v2)
|
||||
if !reflect.DeepEqual(rcv, expected) {
|
||||
t.Errorf("Expected %v \n but received \n %v", utils.ToJSON(expected), utils.ToJSON(rcv))
|
||||
}
|
||||
@@ -278,7 +278,7 @@ func TestDiffReqProcessorsJsnCfg(t *testing.T) {
|
||||
expected = &[]*ReqProcessorJsnCfg{
|
||||
{},
|
||||
}
|
||||
rcv = diffReqProcessorsJsnCfg(d, v1, v2, ";")
|
||||
rcv = diffReqProcessorsJsnCfg(d, v1, v2)
|
||||
if !reflect.DeepEqual(rcv, expected) {
|
||||
t.Errorf("Expected %v \n but received \n %v", utils.ToJSON(expected), utils.ToJSON(rcv))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user