mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
Updated cdrs export tests
This commit is contained in:
committed by
Dan Christian Bogos
parent
0a868919dc
commit
5133783c93
@@ -70,7 +70,7 @@
|
||||
"routingKey": "cgr_cdrs",
|
||||
},
|
||||
"tenant": "cgrates.org",
|
||||
"attempts": 4,
|
||||
"attempts": 20,
|
||||
"fields":[
|
||||
{"tag": "RequiredTemplate","type": "*template", "value": "requiredFields"},
|
||||
],
|
||||
@@ -78,7 +78,7 @@
|
||||
{
|
||||
"id": "aws_test_file",
|
||||
"type": "*amqpv1_json_map",
|
||||
"export_path": "amqps://guest:guest@localhost:25672/",
|
||||
"export_path": "amqps://guest:guest@localhost:95672/",
|
||||
"opts": {
|
||||
"queueID": "cgrates_cdrs",
|
||||
},
|
||||
|
||||
@@ -75,7 +75,7 @@
|
||||
"routingKey": "cgr_cdrs",
|
||||
},
|
||||
"tenant": "cgrates.org",
|
||||
"attempts": 4,
|
||||
"attempts": 20,
|
||||
"fields":[
|
||||
{"tag": "RequiredTemplate","type": "*template", "value": "requiredFields"},
|
||||
],
|
||||
@@ -83,7 +83,7 @@
|
||||
{
|
||||
"id": "aws_test_file",
|
||||
"type": "*amqpv1_json_map",
|
||||
"export_path": "amqps://guest:guest@localhost:25672/",
|
||||
"export_path": "amqps://guest:guest@localhost:95672/",
|
||||
"opts": {
|
||||
"queueID": "cgrates_cdrs",
|
||||
},
|
||||
|
||||
@@ -72,7 +72,7 @@
|
||||
"routingKey": "cgr_cdrs",
|
||||
},
|
||||
"tenant": "cgrates.org",
|
||||
"attempts": 4,
|
||||
"attempts": 20,
|
||||
"fields":[
|
||||
{"tag": "RequiredTemplate","type": "*template", "value": "requiredFields"},
|
||||
],
|
||||
@@ -80,7 +80,7 @@
|
||||
{
|
||||
"id": "aws_test_file",
|
||||
"type": "*amqpv1_json_map",
|
||||
"export_path": "amqps://guest:guest@localhost:25672/",
|
||||
"export_path": "amqps://guest:guest@localhost:95672/",
|
||||
"opts": {
|
||||
"queueID": "cgrates_cdrs",
|
||||
},
|
||||
|
||||
@@ -250,7 +250,7 @@ func testCDRsExpExportEvent(t *testing.T) {
|
||||
Flags: []string{"*export:true", utils.MetaRALs},
|
||||
CGREvent: *cdrsExpEv,
|
||||
}, &reply); err == nil || err.Error() != utils.ErrPartiallyExecuted.Error() { // some exporters will fail
|
||||
t.Error("Unexpected error: ", err.Error())
|
||||
t.Error("Unexpected error: ", err)
|
||||
}
|
||||
time.Sleep(100 * time.Millisecond)
|
||||
filesInDir, _ := ioutil.ReadDir(cdrsExpCfg.GeneralCfg().FailedPostsDir)
|
||||
|
||||
Reference in New Issue
Block a user