mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-12 18:46:24 +05:00
Adding timezone to sessions tests
This commit is contained in:
@@ -75,8 +75,8 @@ func TestSessionSIndexAndUnindexSessions(t *testing.T) {
|
||||
utils.Category: "call",
|
||||
utils.Tenant: "cgrates.org",
|
||||
utils.RequestType: "*prepaid",
|
||||
utils.SetupTime: "2015-11-09 14:21:24",
|
||||
utils.AnswerTime: "2015-11-09 14:22:02",
|
||||
utils.SetupTime: "2015-11-09T14:21:24Z",
|
||||
utils.AnswerTime: "2015-11-09T14:22:02Z",
|
||||
utils.Usage: "1m23s",
|
||||
utils.LastUsed: "21s",
|
||||
utils.PDD: "300ms",
|
||||
@@ -397,8 +397,8 @@ func TestSessionSRegisterAndUnregisterASessions(t *testing.T) {
|
||||
utils.Category: "call",
|
||||
utils.Tenant: "cgrates.org",
|
||||
utils.RequestType: "*prepaid",
|
||||
utils.SetupTime: "2015-11-09 14:21:24",
|
||||
utils.AnswerTime: "2015-11-09 14:22:02",
|
||||
utils.SetupTime: "2015-11-09T14:21:24Z",
|
||||
utils.AnswerTime: "2015-11-09T14:22:02Z",
|
||||
utils.Usage: "1m23s",
|
||||
utils.LastUsed: "21s",
|
||||
utils.PDD: "300ms",
|
||||
@@ -457,7 +457,7 @@ func TestSessionSRegisterAndUnregisterASessions(t *testing.T) {
|
||||
utils.Category: "call",
|
||||
utils.Tenant: "itsyscom.com",
|
||||
utils.RequestType: "*prepaid",
|
||||
utils.AnswerTime: "2015-11-09 14:22:02",
|
||||
utils.AnswerTime: "2015-11-09T14:22:02Z",
|
||||
utils.Usage: "1m23s",
|
||||
utils.LastUsed: "21s",
|
||||
utils.PDD: "300ms",
|
||||
@@ -524,7 +524,7 @@ func TestSessionSRegisterAndUnregisterASessions(t *testing.T) {
|
||||
utils.Category: "call",
|
||||
utils.Tenant: "itsyscom.com",
|
||||
utils.RequestType: "*prepaid",
|
||||
utils.AnswerTime: "2015-11-09 14:22:02",
|
||||
utils.AnswerTime: "2015-11-09T14:22:02Z",
|
||||
utils.Usage: "1m23s",
|
||||
utils.LastUsed: "21s",
|
||||
utils.PDD: "300ms",
|
||||
@@ -618,8 +618,8 @@ func TestSessionSRegisterAndUnregisterPSessions(t *testing.T) {
|
||||
utils.Category: "call",
|
||||
utils.Tenant: "cgrates.org",
|
||||
utils.RequestType: "*prepaid",
|
||||
utils.SetupTime: "2015-11-09 14:21:24",
|
||||
utils.AnswerTime: "2015-11-09 14:22:02",
|
||||
utils.SetupTime: "2015-11-09T14:21:24Z",
|
||||
utils.AnswerTime: "2015-11-09T14:22:02Z",
|
||||
utils.Usage: "1m23s",
|
||||
utils.LastUsed: "21s",
|
||||
utils.PDD: "300ms",
|
||||
@@ -681,7 +681,7 @@ func TestSessionSRegisterAndUnregisterPSessions(t *testing.T) {
|
||||
utils.Category: "call",
|
||||
utils.Tenant: "itsyscom.com",
|
||||
utils.RequestType: "*prepaid",
|
||||
utils.AnswerTime: "2015-11-09 14:22:02",
|
||||
utils.AnswerTime: "2015-11-09T14:22:02Z",
|
||||
utils.Usage: "1m23s",
|
||||
utils.LastUsed: "21s",
|
||||
utils.PDD: "300ms",
|
||||
@@ -748,7 +748,7 @@ func TestSessionSRegisterAndUnregisterPSessions(t *testing.T) {
|
||||
utils.Category: "call",
|
||||
utils.Tenant: "itsyscom.com",
|
||||
utils.RequestType: "*prepaid",
|
||||
utils.AnswerTime: "2015-11-09 14:22:02",
|
||||
utils.AnswerTime: "2015-11-09T14:22:02Z",
|
||||
utils.Usage: "1m23s",
|
||||
utils.LastUsed: "21s",
|
||||
utils.PDD: "300ms",
|
||||
@@ -1393,8 +1393,8 @@ func TestSessionStransitSState(t *testing.T) {
|
||||
utils.Category: "call",
|
||||
utils.Tenant: "cgrates.org",
|
||||
utils.RequestType: "*prepaid",
|
||||
utils.SetupTime: "2015-11-09 14:21:24",
|
||||
utils.AnswerTime: "2015-11-09 14:22:02",
|
||||
utils.SetupTime: "2015-11-09T14:21:24Z",
|
||||
utils.AnswerTime: "2015-11-09T14:22:02Z",
|
||||
utils.Usage: "1m23s",
|
||||
utils.LastUsed: "21s",
|
||||
utils.PDD: "300ms",
|
||||
@@ -1440,8 +1440,8 @@ func TestSessionSrelocateSessionS(t *testing.T) {
|
||||
utils.Category: "call",
|
||||
utils.Tenant: "cgrates.org",
|
||||
utils.RequestType: "*prepaid",
|
||||
utils.SetupTime: "2015-11-09 14:21:24",
|
||||
utils.AnswerTime: "2015-11-09 14:22:02",
|
||||
utils.SetupTime: "2015-11-09T14:21:24Z",
|
||||
utils.AnswerTime: "2015-11-09T14:22:02Z",
|
||||
utils.Usage: "1m23s",
|
||||
utils.LastUsed: "21s",
|
||||
utils.PDD: "300ms",
|
||||
@@ -1634,8 +1634,8 @@ func TestSessionSgetSessionIDsMatchingIndexes(t *testing.T) {
|
||||
utils.Category: "call",
|
||||
utils.Tenant: "cgrates.org",
|
||||
utils.RequestType: "*prepaid",
|
||||
utils.SetupTime: "2015-11-09 14:21:24",
|
||||
utils.AnswerTime: "2015-11-09 14:22:02",
|
||||
utils.SetupTime: "2015-11-09T14:21:24Z",
|
||||
utils.AnswerTime: "2015-11-09T14:22:02Z",
|
||||
utils.Usage: "1m23s",
|
||||
utils.LastUsed: "21s",
|
||||
utils.PDD: "300ms",
|
||||
@@ -1919,8 +1919,8 @@ func TestSessionSgetSession(t *testing.T) {
|
||||
utils.Category: "call",
|
||||
utils.Tenant: "cgrates.org",
|
||||
utils.RequestType: "*prepaid",
|
||||
utils.SetupTime: "2015-11-09 14:21:24",
|
||||
utils.AnswerTime: "2015-11-09 14:22:02",
|
||||
utils.SetupTime: "2015-11-09T14:21:24Z",
|
||||
utils.AnswerTime: "2015-11-09T14:22:02Z",
|
||||
utils.Usage: "1m23s",
|
||||
utils.LastUsed: "21s",
|
||||
utils.PDD: "300ms",
|
||||
@@ -1967,8 +1967,8 @@ func TestSessionSfilterSessions(t *testing.T) {
|
||||
utils.Category: "call",
|
||||
utils.Tenant: "cgrates.org",
|
||||
utils.RequestType: "*prepaid",
|
||||
utils.SetupTime: "2015-11-09 14:21:24",
|
||||
utils.AnswerTime: "2015-11-09 14:22:02",
|
||||
utils.SetupTime: "2015-11-09T14:21:24Z",
|
||||
utils.AnswerTime: "2015-11-09T14:22:02Z",
|
||||
utils.Usage: "1m23s",
|
||||
utils.LastUsed: "21s",
|
||||
utils.PDD: "300ms",
|
||||
@@ -2003,11 +2003,11 @@ func TestSessionSfilterSessions(t *testing.T) {
|
||||
sr2[utils.Subject] = "subject2"
|
||||
sr2[utils.CGRID] = GetSetCGRID(sEv)
|
||||
sS.registerSession(session, false)
|
||||
st, err := utils.IfaceAsTime("2015-11-09T14:21:24+02:00", "")
|
||||
st, err := utils.IfaceAsTime("2015-11-09T14:21:24Z", "")
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
at, err := utils.IfaceAsTime("2015-11-09T14:22:02+02:00", "")
|
||||
at, err := utils.IfaceAsTime("2015-11-09T14:22:02Z", "")
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
@@ -2146,8 +2146,8 @@ func TestSessionSfilterSessionsCount(t *testing.T) {
|
||||
utils.Category: "call",
|
||||
utils.Tenant: "cgrates.org",
|
||||
utils.RequestType: "*prepaid",
|
||||
utils.SetupTime: "2015-11-09 14:21:24",
|
||||
utils.AnswerTime: "2015-11-09 14:22:02",
|
||||
utils.SetupTime: "2015-11-09T14:21:24Z",
|
||||
utils.AnswerTime: "2015-11-09T14:22:02Z",
|
||||
utils.Usage: "1m23s",
|
||||
utils.LastUsed: "21s",
|
||||
utils.PDD: "300ms",
|
||||
|
||||
Reference in New Issue
Block a user