Repair dispatcher opts tests

This commit is contained in:
ionutboangiu
2022-09-19 18:32:11 +03:00
committed by Dan Christian Bogos
parent 9dc0133207
commit 9f9e73ca45
4 changed files with 44 additions and 45 deletions

View File

@@ -84,7 +84,7 @@ func TestCMgetConnUnsupportedBiRPC(t *testing.T) {
}
experr := rpcclient.ErrUnsupportedBiRPC
exp, err := NewRPCPool(context.Background(), "*first", "", "", "", cfg.GeneralCfg().ConnectAttempts,
exp, err := NewRPCPool(context.Background(), utils.MetaFirst, "", "", "", cfg.GeneralCfg().ConnectAttempts,
cfg.GeneralCfg().Reconnects, cfg.GeneralCfg().MaxReconnectInterval, cfg.GeneralCfg().ConnectTimeout,
cfg.GeneralCfg().ReplyTimeout, nil, cc, true, nil, "", cM.connCache)
if err != nil {
@@ -129,7 +129,7 @@ func TestCMgetConnNotInternalRPC(t *testing.T) {
cM.connCache.Set(connID, nil, nil)
exp, err := NewRPCPool(context.Background(), "*first", cfg.TLSCfg().ClientKey, cfg.TLSCfg().ClientCerificate,
exp, err := NewRPCPool(context.Background(), utils.MetaFirst, cfg.TLSCfg().ClientKey, cfg.TLSCfg().ClientCerificate,
cfg.TLSCfg().CaCertificate, cfg.GeneralCfg().ConnectAttempts,
cfg.GeneralCfg().Reconnects, cfg.GeneralCfg().MaxReconnectInterval,
cfg.GeneralCfg().ConnectTimeout, cfg.GeneralCfg().ReplyTimeout,

View File

@@ -458,7 +458,7 @@ func TestLoadDispatcherProfiles(t *testing.T) {
Tenant: "cgrates.org",
ID: "D1",
FilterIDs: []string{"*string:~*req.Account:1001"},
Strategy: "*first",
Strategy: utils.MetaFirst,
Weight: 20,
Hosts: []*utils.TPDispatcherHostProfile{
{