mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-25 09:08:45 +05:00
Fix failing tests afte removal of ActivationInterval from Stats
This commit is contained in:
committed by
Dan Christian Bogos
parent
4a5e4ea885
commit
840e95fa05
@@ -545,7 +545,7 @@ func TestAPItoModelStats(t *testing.T) {
|
||||
Tpid: "TPS1",
|
||||
Tenant: "cgrates.org",
|
||||
ID: "Stat1",
|
||||
FilterIDs: "*ai:~*req.AnswerTime:2014-07-29T15:00:00Z;*string:Account:1002",
|
||||
FilterIDs: "*string:Account:1002;*ai:~*req.AnswerTime:2014-07-29T15:00:00Z",
|
||||
QueueLength: 100,
|
||||
TTL: "1s",
|
||||
MinItems: 2,
|
||||
@@ -4493,7 +4493,7 @@ func TestModelHelpersAPItoModelStatsCase2(t *testing.T) {
|
||||
Tpid: "TPS1",
|
||||
Tenant: "cgrates.org",
|
||||
ID: "Stat1",
|
||||
FilterIDs: "*ai:~*req.AnswerTime:2014-07-25T15:00:00Z|2014-07-26T15:00:00Z;*string:Account:1002;*string:Account:1003",
|
||||
FilterIDs: "*string:Account:1002;*string:Account:1003;*ai:~*req.AnswerTime:2014-07-25T15:00:00Z|2014-07-26T15:00:00Z",
|
||||
QueueLength: 100,
|
||||
TTL: "1s",
|
||||
MinItems: 2,
|
||||
|
||||
@@ -60,7 +60,7 @@ func TestMatchingStatQueuesForEvent(t *testing.T) {
|
||||
{
|
||||
Tenant: "cgrates.org",
|
||||
ID: "StatQueueProfile1",
|
||||
FilterIDs: []string{"FLTR_STATS_1", "*ai:~*req.AnswerTime:2014-07-14T14:25:00Z"},
|
||||
FilterIDs: []string{"FLTR_STATS_1", "*ai:*now:2014-07-14T14:25:00Z"},
|
||||
QueueLength: 10,
|
||||
TTL: 10 * time.Second,
|
||||
Metrics: []*MetricWithFilters{
|
||||
@@ -77,7 +77,7 @@ func TestMatchingStatQueuesForEvent(t *testing.T) {
|
||||
{
|
||||
Tenant: "cgrates.org",
|
||||
ID: "StatQueueProfile2",
|
||||
FilterIDs: []string{"FLTR_STATS_2", "*ai:~*req.AnswerTime:2014-07-14T14:25:00Z"},
|
||||
FilterIDs: []string{"FLTR_STATS_2", "*ai:*now:2014-07-14T14:25:00Z"},
|
||||
QueueLength: 10,
|
||||
TTL: 10 * time.Second,
|
||||
Metrics: []*MetricWithFilters{
|
||||
@@ -94,7 +94,7 @@ func TestMatchingStatQueuesForEvent(t *testing.T) {
|
||||
{
|
||||
Tenant: "cgrates.org",
|
||||
ID: "StatQueueProfilePrefix",
|
||||
FilterIDs: []string{"FLTR_STATS_3", "*ai:~*req.AnswerTime:2014-07-14T14:25:00Z"},
|
||||
FilterIDs: []string{"FLTR_STATS_3", "*ai:*now:2014-07-14T14:25:00Z"},
|
||||
QueueLength: 10,
|
||||
TTL: 10 * time.Second,
|
||||
Metrics: []*MetricWithFilters{
|
||||
@@ -291,7 +291,7 @@ func TestStatQueuesProcessEvent(t *testing.T) {
|
||||
{
|
||||
Tenant: "cgrates.org",
|
||||
ID: "StatQueueProfile1",
|
||||
FilterIDs: []string{"FLTR_STATS_1", "*ai:~*req.AnswerTime:2014-07-14T14:25:00Z"},
|
||||
FilterIDs: []string{"FLTR_STATS_1", "*ai:*now:2014-07-14T14:25:00Z"},
|
||||
QueueLength: 10,
|
||||
TTL: 10 * time.Second,
|
||||
Metrics: []*MetricWithFilters{
|
||||
@@ -308,7 +308,7 @@ func TestStatQueuesProcessEvent(t *testing.T) {
|
||||
{
|
||||
Tenant: "cgrates.org",
|
||||
ID: "StatQueueProfile2",
|
||||
FilterIDs: []string{"FLTR_STATS_2", "*ai:~*req.AnswerTime:2014-07-14T14:25:00Z"},
|
||||
FilterIDs: []string{"FLTR_STATS_2", "*ai:*now:2014-07-14T14:25:00Z"},
|
||||
QueueLength: 10,
|
||||
TTL: 10 * time.Second,
|
||||
Metrics: []*MetricWithFilters{
|
||||
@@ -325,7 +325,7 @@ func TestStatQueuesProcessEvent(t *testing.T) {
|
||||
{
|
||||
Tenant: "cgrates.org",
|
||||
ID: "StatQueueProfilePrefix",
|
||||
FilterIDs: []string{"FLTR_STATS_3", "*ai:~*req.AnswerTime:2014-07-14T14:25:00Z"},
|
||||
FilterIDs: []string{"FLTR_STATS_3", "*ai:*now:2014-07-14T14:25:00Z"},
|
||||
QueueLength: 10,
|
||||
TTL: 10 * time.Second,
|
||||
Metrics: []*MetricWithFilters{
|
||||
@@ -523,7 +523,7 @@ func TestStatQueuesMatchWithIndexFalse(t *testing.T) {
|
||||
{
|
||||
Tenant: "cgrates.org",
|
||||
ID: "StatQueueProfile1",
|
||||
FilterIDs: []string{"FLTR_STATS_1", "*ai:~*req.AnswerTime:2014-07-14T14:25:00Z"},
|
||||
FilterIDs: []string{"FLTR_STATS_1", "*ai:*now:2014-07-14T14:25:00Z"},
|
||||
QueueLength: 10,
|
||||
TTL: 10 * time.Second,
|
||||
Metrics: []*MetricWithFilters{
|
||||
@@ -540,7 +540,7 @@ func TestStatQueuesMatchWithIndexFalse(t *testing.T) {
|
||||
{
|
||||
Tenant: "cgrates.org",
|
||||
ID: "StatQueueProfile2",
|
||||
FilterIDs: []string{"FLTR_STATS_2", "*ai:~*req.AnswerTime:2014-07-14T14:25:00Z"},
|
||||
FilterIDs: []string{"FLTR_STATS_2", "*ai:*now:2014-07-14T14:25:00Z"},
|
||||
QueueLength: 10,
|
||||
TTL: 10 * time.Second,
|
||||
Metrics: []*MetricWithFilters{
|
||||
@@ -557,7 +557,7 @@ func TestStatQueuesMatchWithIndexFalse(t *testing.T) {
|
||||
{
|
||||
Tenant: "cgrates.org",
|
||||
ID: "StatQueueProfilePrefix",
|
||||
FilterIDs: []string{"FLTR_STATS_3", "*ai:~*req.AnswerTime:2014-07-14T14:25:00Z"},
|
||||
FilterIDs: []string{"FLTR_STATS_3", "*ai:*now:2014-07-14T14:25:00Z"},
|
||||
QueueLength: 10,
|
||||
TTL: 10 * time.Second,
|
||||
Metrics: []*MetricWithFilters{
|
||||
|
||||
Reference in New Issue
Block a user