mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
revise tests for disabling rals on cdrs.processevent
This commit is contained in:
committed by
Dan Christian Bogos
parent
f2cb8bc07c
commit
01e0b50d3a
@@ -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) {
|
||||
|
||||
@@ -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{
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user