mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-14 20:59:53 +05:00
Correct remote tests with correct database for redis
This commit is contained in:
committed by
Dan Christian Bogos
parent
cc0855ce83
commit
d2fd2e19db
@@ -62,7 +62,7 @@ func TestInternalRemoteITRedis(t *testing.T) {
|
||||
cfg, _ := config.NewDefaultCGRConfig()
|
||||
dataDB, err := engine.NewRedisStorage(
|
||||
fmt.Sprintf("%s:%s", cfg.DataDbCfg().DataDbHost, cfg.DataDbCfg().DataDbPort),
|
||||
4, cfg.DataDbCfg().DataDbPass, cfg.GeneralCfg().DBDataEncoding,
|
||||
10, cfg.DataDbCfg().DataDbPass, cfg.GeneralCfg().DBDataEncoding,
|
||||
utils.REDIS_MAX_CONNS, "")
|
||||
if err != nil {
|
||||
t.Fatal("Could not connect to Redis", err.Error())
|
||||
@@ -202,7 +202,7 @@ func testInternalRemoteITGetAttribute(t *testing.T) {
|
||||
}
|
||||
reply.Compile()
|
||||
if !reflect.DeepEqual(alsPrf.AttributeProfile, reply) {
|
||||
t.Errorf("Expecting : %+v, received: %+v", alsPrf.AttributeProfile, reply)
|
||||
t.Errorf("Expecting : %+v, received: %+v", utils.ToJSON(alsPrf.AttributeProfile), utils.ToJSON(reply))
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -198,7 +198,7 @@ func testSchedVeifyAccount1001(t *testing.T) {
|
||||
}
|
||||
|
||||
func testSchedVeifyAccount1002and1003(t *testing.T) {
|
||||
if schedConfDIR == "tutmysql" || schedConfDIR == "filtered_scheduler1" {
|
||||
if schedConfDIR == "tutmysql" || schedConfDIR == "filtered_scheduler" {
|
||||
t.SkipNow()
|
||||
}
|
||||
var acnt *engine.Account
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
"db_type": "*internal",
|
||||
"remote_conns": [
|
||||
{
|
||||
"db_type": "redis",
|
||||
"db_type": "*redis",
|
||||
"db_port": 6379,
|
||||
"db_name": "10",
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user