Updated cdrs export tests

This commit is contained in:
Trial97
2021-01-28 10:08:08 +02:00
committed by Dan Christian Bogos
parent 0a868919dc
commit 5133783c93
4 changed files with 7 additions and 7 deletions

View File

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

View File

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

View File

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

View File

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