In CGREvent changed Opts in APIOpts

This commit is contained in:
andronache
2021-03-22 09:52:09 +02:00
committed by Dan Christian Bogos
parent b573e12233
commit 32c234a6c7
138 changed files with 937 additions and 937 deletions

View File

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

View File

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