mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
Repair tests after adding new dispatcher cfg field
This commit is contained in:
committed by
Dan Christian Bogos
parent
3dfdf103ad
commit
caba77f462
File diff suppressed because one or more lines are too long
@@ -74,6 +74,7 @@ func TestDispatcherSCfgAsMapInterface(t *testing.T) {
|
||||
utils.NestedFieldsCfg: false,
|
||||
utils.AttributeSConnsCfg: []string{},
|
||||
utils.AnySubsystemCfg: true,
|
||||
utils.PreventLoopCfg: false,
|
||||
}
|
||||
if cgrCfg, err := NewCGRConfigFromJSONStringWithDefaults(cfgJSONStr); err != nil {
|
||||
t.Error(err)
|
||||
@@ -92,6 +93,7 @@ func TestDispatcherSCfgAsMapInterface1(t *testing.T) {
|
||||
"suffix_indexed_fields": ["*req.prefix"],
|
||||
"nested_fields": false,
|
||||
"attributes_conns": ["*internal:*attributes", "*conn1"],
|
||||
"prevent_loop": true
|
||||
},
|
||||
|
||||
}`
|
||||
@@ -104,6 +106,7 @@ func TestDispatcherSCfgAsMapInterface1(t *testing.T) {
|
||||
utils.NestedFieldsCfg: false,
|
||||
utils.AttributeSConnsCfg: []string{"*internal", "*conn1"},
|
||||
utils.AnySubsystemCfg: true,
|
||||
utils.PreventLoopCfg: true,
|
||||
}
|
||||
if cgrCfg, err := NewCGRConfigFromJSONStringWithDefaults(cfgJSONStr); err != nil {
|
||||
t.Error(err)
|
||||
@@ -124,6 +127,7 @@ func TestDispatcherSCfgAsMapInterface2(t *testing.T) {
|
||||
utils.NestedFieldsCfg: false,
|
||||
utils.AttributeSConnsCfg: []string{},
|
||||
utils.AnySubsystemCfg: true,
|
||||
utils.PreventLoopCfg: false,
|
||||
}
|
||||
if cgrCfg, err := NewCGRConfigFromJSONStringWithDefaults(cfgJSONStr); err != nil {
|
||||
t.Error(err)
|
||||
|
||||
Reference in New Issue
Block a user