mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 10:06:24 +05:00
In CGREvent changed Opts in APIOpts
This commit is contained in:
committed by
Dan Christian Bogos
parent
b573e12233
commit
32c234a6c7
@@ -161,7 +161,7 @@ func testAnalyzerSChargerSv1ProcessEvent(t *testing.T) {
|
||||
"RunID": "*default",
|
||||
"Subject": "Something_inter",
|
||||
},
|
||||
Opts: map[string]interface{}{"*subsys": "*chargers"},
|
||||
APIOpts: map[string]interface{}{"*subsys": "*chargers"},
|
||||
},
|
||||
},
|
||||
{
|
||||
@@ -178,7 +178,7 @@ func testAnalyzerSChargerSv1ProcessEvent(t *testing.T) {
|
||||
"RunID": "*raw",
|
||||
"Subject": "Something_inter",
|
||||
},
|
||||
Opts: map[string]interface{}{"*subsys": "*chargers"},
|
||||
APIOpts: map[string]interface{}{"*subsys": "*chargers"},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
@@ -199,7 +199,7 @@ func TestAnalyzersV1Search(t *testing.T) {
|
||||
t1 := time.Now()
|
||||
if err = anz.logTrafic(0, utils.CoreSv1Ping,
|
||||
&utils.CGREvent{
|
||||
Opts: map[string]interface{}{
|
||||
APIOpts: map[string]interface{}{
|
||||
utils.EventSource: utils.MetaCDRs,
|
||||
},
|
||||
}, utils.Pong, nil, utils.MetaJSON, "127.0.0.1:5565",
|
||||
@@ -209,7 +209,7 @@ func TestAnalyzersV1Search(t *testing.T) {
|
||||
|
||||
if err = anz.logTrafic(1, utils.CoreSv1Ping,
|
||||
&utils.CGREvent{
|
||||
Opts: map[string]interface{}{
|
||||
APIOpts: map[string]interface{}{
|
||||
utils.EventSource: utils.MetaAttributes,
|
||||
},
|
||||
}, utils.Pong, nil,
|
||||
@@ -221,7 +221,7 @@ func TestAnalyzersV1Search(t *testing.T) {
|
||||
|
||||
if err = anz.logTrafic(2, utils.CoreSv1Ping,
|
||||
&utils.CGREvent{
|
||||
Opts: map[string]interface{}{
|
||||
APIOpts: map[string]interface{}{
|
||||
utils.EventSource: utils.MetaAttributes,
|
||||
},
|
||||
}, utils.Pong, nil,
|
||||
@@ -233,7 +233,7 @@ func TestAnalyzersV1Search(t *testing.T) {
|
||||
|
||||
if err = anz.logTrafic(3, utils.CoreSv1Ping,
|
||||
&utils.CGREvent{
|
||||
Opts: map[string]interface{}{
|
||||
APIOpts: map[string]interface{}{
|
||||
utils.EventSource: utils.MetaAttributes,
|
||||
},
|
||||
}, utils.Pong, nil,
|
||||
|
||||
Reference in New Issue
Block a user