Revert "Move CGREvent from utils to engine"

This reverts commit 02195c47ed.
This commit is contained in:
ionutboangiu
2024-03-01 12:14:40 -05:00
committed by Dan Christian Bogos
parent 0c99cf1df5
commit 0aea8ac641
321 changed files with 3693 additions and 3695 deletions

View File

@@ -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{

View File

@@ -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,
},