mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 10:06:24 +05:00
Move CGREvent from utils to engine
This commit is contained in:
committed by
Dan Christian Bogos
parent
158dce7323
commit
02195c47ed
@@ -120,7 +120,7 @@ func testRPCLoadData(t *testing.T) {
|
||||
}
|
||||
|
||||
func testRPCChargerSNoAttr(t *testing.T) {
|
||||
cgrEv := &utils.CGREvent{ // matching Charger1
|
||||
cgrEv := &engine.CGREvent{ // matching Charger1
|
||||
Tenant: "cgrates.org",
|
||||
Event: map[string]any{
|
||||
utils.AccountField: "1010",
|
||||
@@ -143,7 +143,7 @@ func testRPCStartRegc(t *testing.T) {
|
||||
}
|
||||
|
||||
func testRPCChargerSWithAttr(t *testing.T) {
|
||||
cgrEv := &utils.CGREvent{ // matching Charger1
|
||||
cgrEv := &engine.CGREvent{ // matching Charger1
|
||||
Tenant: "cgrates.org",
|
||||
Event: map[string]any{
|
||||
utils.AccountField: "1010",
|
||||
@@ -155,7 +155,7 @@ func testRPCChargerSWithAttr(t *testing.T) {
|
||||
{
|
||||
ChargerSProfile: "CustomerCharges",
|
||||
AlteredFields: []string{"*req.RunID"},
|
||||
CGREvent: &utils.CGREvent{
|
||||
CGREvent: &engine.CGREvent{
|
||||
Tenant: "cgrates.org",
|
||||
Event: map[string]any{
|
||||
"Account": "1010",
|
||||
@@ -170,7 +170,7 @@ func testRPCChargerSWithAttr(t *testing.T) {
|
||||
ChargerSProfile: "Raw",
|
||||
AttributeSProfiles: []string{"*constant:*req.RequestType:*none"},
|
||||
AlteredFields: []string{"*req.RunID", "*req.RequestType"},
|
||||
CGREvent: &utils.CGREvent{
|
||||
CGREvent: &engine.CGREvent{
|
||||
Tenant: "cgrates.org",
|
||||
Event: map[string]any{
|
||||
"Account": "1010",
|
||||
@@ -187,7 +187,7 @@ func testRPCChargerSWithAttr(t *testing.T) {
|
||||
ChargerSProfile: "SupplierCharges",
|
||||
AttributeSProfiles: []string{"cgrates.org:ATTR_SUPPLIER1"},
|
||||
AlteredFields: []string{"*req.RunID", "*req.Subject"},
|
||||
CGREvent: &utils.CGREvent{
|
||||
CGREvent: &engine.CGREvent{
|
||||
Tenant: "cgrates.org",
|
||||
Event: map[string]any{
|
||||
"Account": "1010",
|
||||
|
||||
Reference in New Issue
Block a user