mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 10:06:24 +05:00
Revert "Move CGREvent from utils to engine"
This reverts commit 02195c47ed.
This commit is contained in:
committed by
Dan Christian Bogos
parent
0c99cf1df5
commit
0aea8ac641
@@ -149,7 +149,7 @@ func testAnalyzerSLoadTarrifPlans(t *testing.T) {
|
||||
}
|
||||
|
||||
func testAnalyzerSChargerSv1ProcessEvent(t *testing.T) {
|
||||
cgrEv := &engine.CGREvent{
|
||||
cgrEv := &utils.CGREvent{
|
||||
Tenant: "cgrates.org",
|
||||
ID: "event1",
|
||||
Event: map[string]any{
|
||||
@@ -164,7 +164,7 @@ func testAnalyzerSChargerSv1ProcessEvent(t *testing.T) {
|
||||
{
|
||||
ChargerSProfile: "DEFAULT",
|
||||
AlteredFields: []string{"*req.RunID"},
|
||||
CGREvent: &engine.CGREvent{
|
||||
CGREvent: &utils.CGREvent{
|
||||
Tenant: "cgrates.org",
|
||||
ID: "event1",
|
||||
Event: map[string]any{
|
||||
@@ -180,7 +180,7 @@ func testAnalyzerSChargerSv1ProcessEvent(t *testing.T) {
|
||||
ChargerSProfile: "Raw",
|
||||
AttributeSProfiles: []string{"*constant:*req.RequestType:*none"},
|
||||
AlteredFields: []string{"*req.RunID", "*req.RequestType"},
|
||||
CGREvent: &engine.CGREvent{
|
||||
CGREvent: &utils.CGREvent{
|
||||
Tenant: "cgrates.org",
|
||||
ID: "event1",
|
||||
Event: map[string]any{
|
||||
|
||||
@@ -200,7 +200,7 @@ func TestAnalyzersV1Search(t *testing.T) {
|
||||
// generate trafic
|
||||
t1 := time.Now()
|
||||
if err = anz.logTrafic(0, utils.CoreSv1Ping,
|
||||
&engine.CGREvent{
|
||||
&utils.CGREvent{
|
||||
APIOpts: map[string]any{
|
||||
utils.EventSource: utils.MetaCDRs,
|
||||
},
|
||||
@@ -210,7 +210,7 @@ func TestAnalyzersV1Search(t *testing.T) {
|
||||
}
|
||||
|
||||
if err = anz.logTrafic(1, utils.CoreSv1Ping,
|
||||
&engine.CGREvent{
|
||||
&utils.CGREvent{
|
||||
APIOpts: map[string]any{
|
||||
utils.EventSource: utils.MetaAttributes,
|
||||
},
|
||||
@@ -222,7 +222,7 @@ func TestAnalyzersV1Search(t *testing.T) {
|
||||
}
|
||||
|
||||
if err = anz.logTrafic(2, utils.CoreSv1Ping,
|
||||
&engine.CGREvent{
|
||||
&utils.CGREvent{
|
||||
APIOpts: map[string]any{
|
||||
utils.EventSource: utils.MetaAttributes,
|
||||
},
|
||||
@@ -234,7 +234,7 @@ func TestAnalyzersV1Search(t *testing.T) {
|
||||
}
|
||||
|
||||
if err = anz.logTrafic(3, utils.CoreSv1Ping,
|
||||
&engine.CGREvent{
|
||||
&utils.CGREvent{
|
||||
APIOpts: map[string]any{
|
||||
utils.EventSource: utils.MetaAttributes,
|
||||
},
|
||||
@@ -245,7 +245,7 @@ func TestAnalyzersV1Search(t *testing.T) {
|
||||
t.Fatal(err)
|
||||
}
|
||||
if err = anz.logTrafic(3, utils.CoreSv1Status,
|
||||
&engine.CGREvent{
|
||||
&utils.CGREvent{
|
||||
APIOpts: map[string]any{
|
||||
utils.EventSource: utils.MetaEEs,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user