From 01e0b50d3a310b81dd65b30fba033d889f194829 Mon Sep 17 00:00:00 2001 From: gezimbll Date: Fri, 17 May 2024 11:06:51 -0400 Subject: [PATCH] revise tests for disabling rals on cdrs.processevent --- config/janusagntcfg_test.go | 6 ++++-- general_tests/cdrs_it_test.go | 2 +- general_tests/rerate_exp_it_test.go | 1 + 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/config/janusagntcfg_test.go b/config/janusagntcfg_test.go index 6c9e6942f..5ee617d5f 100644 --- a/config/janusagntcfg_test.go +++ b/config/janusagntcfg_test.go @@ -40,8 +40,10 @@ func TestJanusConnAsMapInterface(t *testing.T) { Type: "ws", } exp := map[string]any{ - utils.AddressCfg: "127.001", - utils.TypeCfg: "ws", + utils.AddressCfg: "127.001", + utils.TypeCfg: "ws", + utils.AdminAddressCfg: "", + utils.AdminPasswordCfg: "", } val := js.AsMapInterface() if !reflect.DeepEqual(val, exp) { diff --git a/general_tests/cdrs_it_test.go b/general_tests/cdrs_it_test.go index 3336a431b..5a12fd6aa 100644 --- a/general_tests/cdrs_it_test.go +++ b/general_tests/cdrs_it_test.go @@ -305,7 +305,7 @@ func testV2CDRsGetCdrs2(t *testing.T) { // Disable Attributes and Charger process func testV2CDRsProcessCDR3(t *testing.T) { args := &engine.ArgV1ProcessEvent{ - Flags: []string{"*attributes:false", "*chargers:false"}, + Flags: []string{"*attributes:false", "*chargers:false", "*rals:false"}, CGREvent: utils.CGREvent{ Tenant: "cgrates.org", Event: map[string]any{ diff --git a/general_tests/rerate_exp_it_test.go b/general_tests/rerate_exp_it_test.go index 38e9a66d3..851c1e80c 100644 --- a/general_tests/rerate_exp_it_test.go +++ b/general_tests/rerate_exp_it_test.go @@ -362,6 +362,7 @@ func testRerateExpGetAccountAfterProcessEvent2(t *testing.T) { func testRerateExpProcessEventCDR3(t *testing.T) { argsEv := &engine.ArgV1ProcessEvent{ + Flags: []string{"*rals:false"}, CGREvent: utils.CGREvent{ Tenant: "cgrates.org", ID: "event3",