mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
Updated integration tests
This commit is contained in:
committed by
Dan Christian Bogos
parent
f7e9f0960a
commit
8004fd3753
@@ -184,7 +184,7 @@ func testSAitSIPInvite(t *testing.T) {
|
||||
if expected := "SIP/2.0 302 Moved Temporarily"; received["Request"] != expected {
|
||||
t.Errorf("Expected %q, received: %q", expected, received["Request"])
|
||||
}
|
||||
if expected := "\"1002\" <sip:1002@cgrates.org>;q=0.7; expires=3600;cgr_cost=0.3;cgr_maxusage=60000000000,\"1002\" <sip:1002@cgrates.net>;q=0.2;cgr_cost=0.6;cgr_maxusage=60000000000,\"1002\" <sip:1002@cgrates.com>;q=0.1;cgr_cost=0.01;cgr_maxusage=60000000000"; received["Contact"] != expected {
|
||||
if expected := "\"1002\" <sip:1002@cgrates.org>;q=0.7; expires=3600;cgr_cost=0.3;cgr_maxusage=30000000000,\"1002\" <sip:1002@cgrates.net>;q=0.2;cgr_cost=0.6;cgr_maxusage=30000000000,\"1002\" <sip:1002@cgrates.com>;q=0.1;cgr_cost=0.01;cgr_maxusage=30000000000"; received["Contact"] != expected {
|
||||
t.Errorf("Expected %q, received: %q", expected, received["Contact"])
|
||||
}
|
||||
|
||||
@@ -200,7 +200,7 @@ func testSAitSIPInvite(t *testing.T) {
|
||||
if expected := "SIP/2.0 302 Moved Temporarily"; received["Request"] != expected {
|
||||
t.Errorf("Expected %q, received: %q", expected, received["Request"])
|
||||
}
|
||||
if expected := "\"1002\" <sip:1002@cgrates.org>;q=0.7; expires=3600;cgr_cost=0.3;cgr_maxusage=60000000000,\"1002\" <sip:1002@cgrates.net>;q=0.2;cgr_cost=0.6;cgr_maxusage=60000000000,\"1002\" <sip:1002@cgrates.com>;q=0.1;cgr_cost=0.01;cgr_maxusage=60000000000"; received["Contact"] != expected {
|
||||
if expected := "\"1002\" <sip:1002@cgrates.org>;q=0.7; expires=3600;cgr_cost=0.3;cgr_maxusage=30000000000,\"1002\" <sip:1002@cgrates.net>;q=0.2;cgr_cost=0.6;cgr_maxusage=30000000000,\"1002\" <sip:1002@cgrates.com>;q=0.1;cgr_cost=0.01;cgr_maxusage=30000000000"; received["Contact"] != expected {
|
||||
t.Errorf("Expected %q, received: %q", expected, received["Contact"])
|
||||
}
|
||||
|
||||
|
||||
@@ -621,7 +621,7 @@ func testSSv1ItProcessEvent(t *testing.T) {
|
||||
t.Errorf("Unexpected ResourceAllocation: %s", *rply.ResourceAllocation)
|
||||
}
|
||||
eAttrs := &engine.AttrSProcessEventReply{
|
||||
Opts: map[string]interface{}{utils.Subsys: utils.MetaChargers},
|
||||
Opts: map[string]interface{}{utils.Subsys: utils.MetaSessionS},
|
||||
MatchedProfiles: []string{"ATTR_ACNT_1001"},
|
||||
AlteredFields: []string{"*req.OfficeGroup"},
|
||||
CGREvent: &utils.CGREvent{
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
#ActionsId[0],Action[1],ExtraParameters[2],Filter[3],BalanceId[4],BalanceType[5],Categories[6],DestinationIds[7],RatingSubject[8],SharedGroup[9],ExpiryTime[10],TimingIds[11],Units[12],BalanceWeight[13],BalanceBlocker[14],BalanceDisabled[15],Weight[16]
|
||||
ACT_TOPUP_RST_10,*topup_reset,,,test,*monetary,,*any,,,*unlimited,,10,10,false,false,10
|
||||
ACT_TOPUP_RST_10,*topup_reset,,,test,*voice,,*any,,,*unlimited,,30s,10,false,false,10
|
||||
|
Reference in New Issue
Block a user