From af834baaa4b41ec6d2c82654d89c533f3c89e180 Mon Sep 17 00:00:00 2001 From: Radu Ioan Fericean Date: Tue, 15 Sep 2015 14:51:45 +0300 Subject: [PATCH] fixed tests --- config/config_json_test.go | 5 +---- general_tests/acntacts_test.go | 6 +++--- general_tests/auth_test.go | 2 +- general_tests/ddazmbl1_test.go | 4 ++-- general_tests/ddazmbl2_test.go | 4 ++-- general_tests/ddazmbl3_test.go | 2 +- 6 files changed, 10 insertions(+), 13 deletions(-) diff --git a/config/config_json_test.go b/config/config_json_test.go index a2f4c4ffb..fcfd7fc20 100644 --- a/config/config_json_test.go +++ b/config/config_json_test.go @@ -49,7 +49,7 @@ func TestDfGeneralJsonCfg(t *testing.T) { Default_timezone: utils.StringPointer("Local"), Connect_attempts: utils.IntPointer(3), Reconnects: utils.IntPointer(-1), - Response_cache_ttl: utils.StringPointer("3s")} + Response_cache_ttl: utils.StringPointer("3s"), Internal_ttl: utils.StringPointer("2m")} if gCfg, err := dfCgrJsonCfg.GeneralJsonCfg(); err != nil { t.Error(err) @@ -335,7 +335,6 @@ func TestSmFsJsonCfg(t *testing.T) { Server: utils.StringPointer("internal"), Timeout: utils.StringPointer("100ms"), }}, - Reconnects: utils.IntPointer(5), Create_cdr: utils.BoolPointer(false), Extra_fields: utils.StringSlicePointer([]string{}), Debit_interval: utils.StringPointer("10s"), @@ -374,7 +373,6 @@ func TestSmKamJsonCfg(t *testing.T) { Server: utils.StringPointer("internal"), Timeout: utils.StringPointer("100ms"), }}, - Reconnects: utils.IntPointer(5), Create_cdr: utils.BoolPointer(false), Debit_interval: utils.StringPointer("10s"), Min_call_duration: utils.StringPointer("0s"), @@ -407,7 +405,6 @@ func TestSmOsipsJsonCfg(t *testing.T) { Server: utils.StringPointer("internal"), Timeout: utils.StringPointer("100ms"), }}, - Listen_udp: utils.StringPointer("127.0.0.1:2020"), Create_cdr: utils.BoolPointer(false), Debit_interval: utils.StringPointer("10s"), Min_call_duration: utils.StringPointer("0s"), diff --git a/general_tests/acntacts_test.go b/general_tests/acntacts_test.go index 7c26300aa..78714a102 100644 --- a/general_tests/acntacts_test.go +++ b/general_tests/acntacts_test.go @@ -44,9 +44,9 @@ func TestAcntActsLoadCsv(t *testing.T) { ratingProfiles := `` sharedGroups := `` lcrs := `` - actions := `TOPUP10_AC,*topup_reset,,,*voice,*out,,*any,,,*unlimited,,10,10,10 -DISABLE_ACNT,*disable_account,,,,,,,,,,,,,10 -ENABLE_ACNT,*enable_account,,,,,,,,,,,,,10` + actions := `TOPUP10_AC,*topup_reset,,,*voice,*out,,*any,,,*unlimited,,10,10,false,10 +DISABLE_ACNT,*disable_account,,,,,,,,,,,,,false,10 +ENABLE_ACNT,*enable_account,,,,,,,,,,,,,false,10` actionPlans := `TOPUP10_AT,TOPUP10_AC,ASAP,10` actionTriggers := `` accountActions := `cgrates.org,1,*out,TOPUP10_AT,` diff --git a/general_tests/auth_test.go b/general_tests/auth_test.go index b8d4d5c1a..f7ad7e739 100644 --- a/general_tests/auth_test.go +++ b/general_tests/auth_test.go @@ -56,7 +56,7 @@ RP_ANY,DR_ANY_1CNT,*any,10` *out,cgrates.org,call,*any,2013-01-06T00:00:00Z,RP_ANY,,` sharedGroups := `` lcrs := `` - actions := `TOPUP10_AC,*topup_reset,,,*monetary,*out,,*any,,,*unlimited,,0,10,10` + actions := `TOPUP10_AC,*topup_reset,,,*monetary,*out,,*any,,,*unlimited,,0,10,false,10` actionPlans := `TOPUP10_AT,TOPUP10_AC,*asap,10` actionTriggers := `` accountActions := `cgrates.org,testauthpostpaid1,*out,TOPUP10_AT,` diff --git a/general_tests/ddazmbl1_test.go b/general_tests/ddazmbl1_test.go index 36e3995d4..4ee259183 100644 --- a/general_tests/ddazmbl1_test.go +++ b/general_tests/ddazmbl1_test.go @@ -53,8 +53,8 @@ RP_UK,DR_UK_Mobile_BIG5,ALWAYS,10` *out,cgrates.org,call,discounted_minutes,2013-01-06T00:00:00Z,RP_UK_Mobile_BIG5_PKG,,` sharedGroups := `` lcrs := `` - actions := `TOPUP10_AC,*topup_reset,,,*monetary,*out,,*any,,,*unlimited,,10,10,10 -TOPUP10_AC1,*topup_reset,,,*voice,*out,,DST_UK_Mobile_BIG5,discounted_minutes,,*unlimited,,40,10,10` + actions := `TOPUP10_AC,*topup_reset,,,*monetary,*out,,*any,,,*unlimited,,10,10,false,10 +TOPUP10_AC1,*topup_reset,,,*voice,*out,,DST_UK_Mobile_BIG5,discounted_minutes,,*unlimited,,40,10,false,10` actionPlans := `TOPUP10_AT,TOPUP10_AC,ASAP,10 TOPUP10_AT,TOPUP10_AC1,ASAP,10` actionTriggers := `` diff --git a/general_tests/ddazmbl2_test.go b/general_tests/ddazmbl2_test.go index 4d6ca6bb1..711cffae3 100644 --- a/general_tests/ddazmbl2_test.go +++ b/general_tests/ddazmbl2_test.go @@ -53,8 +53,8 @@ RP_UK,DR_UK_Mobile_BIG5,ALWAYS,10` *out,cgrates.org,call,discounted_minutes,2013-01-06T00:00:00Z,RP_UK_Mobile_BIG5_PKG,,` sharedGroups := `` lcrs := `` - actions := `TOPUP10_AC,*topup_reset,,,*monetary,*out,,*any,,,*unlimited,,0,10,10 -TOPUP10_AC1,*topup_reset,,,*voice,*out,,DST_UK_Mobile_BIG5,discounted_minutes,,*unlimited,,40,10,10` + actions := `TOPUP10_AC,*topup_reset,,,*monetary,*out,,*any,,,*unlimited,,0,10,false,10 +TOPUP10_AC1,*topup_reset,,,*voice,*out,,DST_UK_Mobile_BIG5,discounted_minutes,,*unlimited,,40,10,false,10` actionPlans := `TOPUP10_AT,TOPUP10_AC,ASAP,10 TOPUP10_AT,TOPUP10_AC1,ASAP,10` actionTriggers := `` diff --git a/general_tests/ddazmbl3_test.go b/general_tests/ddazmbl3_test.go index 1bf8f118d..2bd14036b 100644 --- a/general_tests/ddazmbl3_test.go +++ b/general_tests/ddazmbl3_test.go @@ -53,7 +53,7 @@ RP_UK,DR_UK_Mobile_BIG5,ALWAYS,10` *out,cgrates.org,call,discounted_minutes,2013-01-06T00:00:00Z,RP_UK_Mobile_BIG5_PKG,,` sharedGroups := `` lcrs := `` - actions := `TOPUP10_AC1,*topup_reset,,,*voice,*out,,DST_UK_Mobile_BIG5,discounted_minutes,,*unlimited,,40,10,10` + actions := `TOPUP10_AC1,*topup_reset,,,*voice,*out,,DST_UK_Mobile_BIG5,discounted_minutes,,*unlimited,,40,10,false,10` actionPlans := `TOPUP10_AT,TOPUP10_AC1,ASAP,10` actionTriggers := `` accountActions := `cgrates.org,12346,*out,TOPUP10_AT,`