revise tests for disabling rals on cdrs.processevent

This commit is contained in:
gezimbll
2024-05-17 11:06:51 -04:00
committed by Dan Christian Bogos
parent f2cb8bc07c
commit 01e0b50d3a
3 changed files with 6 additions and 3 deletions

View File

@@ -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) {

View File

@@ -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{

View File

@@ -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",