mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-16 21:59:53 +05:00
Update config_test
This commit is contained in:
committed by
Dan Christian Bogos
parent
f4ba447780
commit
152ae6f230
@@ -1234,22 +1234,14 @@ func TestDfHttpJsonCfg(t *testing.T) {
|
||||
|
||||
func TestDfDispatcherSJsonCfg(t *testing.T) {
|
||||
eCfg := &DispatcherSJsonCfg{
|
||||
Enabled: utils.BoolPointer(false),
|
||||
Rals_conns: &[]*HaPoolJsonCfg{
|
||||
&HaPoolJsonCfg{
|
||||
Address: utils.StringPointer(utils.MetaInternal),
|
||||
},
|
||||
},
|
||||
Resources_conns: &[]*HaPoolJsonCfg{},
|
||||
Thresholds_conns: &[]*HaPoolJsonCfg{},
|
||||
Stats_conns: &[]*HaPoolJsonCfg{},
|
||||
Suppliers_conns: &[]*HaPoolJsonCfg{},
|
||||
Attributes_conns: &[]*HaPoolJsonCfg{},
|
||||
Sessions_conns: &[]*HaPoolJsonCfg{
|
||||
&HaPoolJsonCfg{
|
||||
Address: utils.StringPointer(utils.MetaInternal),
|
||||
},
|
||||
},
|
||||
Enabled: utils.BoolPointer(false),
|
||||
Rals_conns: &[]*HaPoolJsonCfg{},
|
||||
Resources_conns: &[]*HaPoolJsonCfg{},
|
||||
Thresholds_conns: &[]*HaPoolJsonCfg{},
|
||||
Stats_conns: &[]*HaPoolJsonCfg{},
|
||||
Suppliers_conns: &[]*HaPoolJsonCfg{},
|
||||
Attributes_conns: &[]*HaPoolJsonCfg{},
|
||||
Sessions_conns: &[]*HaPoolJsonCfg{},
|
||||
Dispatching_strategy: utils.StringPointer(utils.MetaRandom),
|
||||
}
|
||||
if cfg, err := dfCgrJsonCfg.DispatcherSJsonCfg(); err != nil {
|
||||
|
||||
@@ -1334,22 +1334,14 @@ func TestCgrLoaderCfgITDefaults(t *testing.T) {
|
||||
|
||||
func TestCgrCfgJSONDefaultDispatcherSCfg(t *testing.T) {
|
||||
eDspSCfg := &DispatcherSCfg{
|
||||
Enabled: false,
|
||||
RALsConns: []*HaPoolConfig{
|
||||
&HaPoolConfig{
|
||||
Address: utils.MetaInternal,
|
||||
},
|
||||
},
|
||||
ResSConns: []*HaPoolConfig{},
|
||||
ThreshSConns: []*HaPoolConfig{},
|
||||
StatSConns: []*HaPoolConfig{},
|
||||
SupplSConns: []*HaPoolConfig{},
|
||||
AttrSConns: []*HaPoolConfig{},
|
||||
SessionSConns: []*HaPoolConfig{
|
||||
&HaPoolConfig{
|
||||
Address: utils.MetaInternal,
|
||||
},
|
||||
},
|
||||
Enabled: false,
|
||||
RALsConns: []*HaPoolConfig{},
|
||||
ResSConns: []*HaPoolConfig{},
|
||||
ThreshSConns: []*HaPoolConfig{},
|
||||
StatSConns: []*HaPoolConfig{},
|
||||
SupplSConns: []*HaPoolConfig{},
|
||||
AttrSConns: []*HaPoolConfig{},
|
||||
SessionSConns: []*HaPoolConfig{},
|
||||
DispatchingStrategy: utils.MetaRandom,
|
||||
}
|
||||
if !reflect.DeepEqual(cgrCfg.dispatcherSCfg, eDspSCfg) {
|
||||
|
||||
Reference in New Issue
Block a user