mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-25 09:08:45 +05:00
Added full tests for nats ers
This commit is contained in:
committed by
Dan Christian Bogos
parent
81f2d722f6
commit
e7bbbbdb2d
@@ -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)
|
||||
|
||||
@@ -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{}{},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user