Added full tests for nats ers

This commit is contained in:
Trial97
2021-06-25 15:30:29 +03:00
committed by Dan Christian Bogos
parent 81f2d722f6
commit e7bbbbdb2d
7 changed files with 236 additions and 49 deletions

View File

@@ -380,6 +380,7 @@ const CGRATES_CFG_JSON = `
// nats
// "natsJetStream": false, // controls if the nats reader uses the JetStream
// "natsConsumerName": "cgrates", // in case of JetStream the name of the consumer
"natsSubject": "cgrates_cdrs", // the subject from were the events are read
// "natsQueueID": "", // the queue id the consumer listen to
// "natsJWTFile": "", // the path to the JWT file( can be the chained file or the user file)

View File

@@ -457,6 +457,7 @@ func testCGRConfigReloadERs(t *testing.T) {
"csvRowLength": 0.,
"partialOrderField": "~*req.AnswerTime",
"xmlRootPath": "",
"natsSubject": "cgrates_cdrs",
},
},
{
@@ -477,6 +478,7 @@ func testCGRConfigReloadERs(t *testing.T) {
"csvRowLength": 0.,
"partialOrderField": "~*req.AnswerTime",
"xmlRootPath": "",
"natsSubject": "cgrates_cdrs",
},
},
},
@@ -664,6 +666,7 @@ func testCgrCfgV1ReloadConfigSection(t *testing.T) {
"csvRowLength": 0.,
"partialOrderField": "~*req.AnswerTime",
"xmlRootPath": "",
"natsSubject": "cgrates_cdrs",
},
"partial_commit_fields": []interface{}{},
},
@@ -686,6 +689,7 @@ func testCgrCfgV1ReloadConfigSection(t *testing.T) {
"csvRowLength": 0.,
"partialOrderField": "~*req.AnswerTime",
"xmlRootPath": "",
"natsSubject": "cgrates_cdrs",
},
"partial_commit_fields": []interface{}{},
},