mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
Updated config integration tests
This commit is contained in:
committed by
Dan Christian Bogos
parent
1582620ccd
commit
9cc3fb8f6b
@@ -81,30 +81,31 @@ func TestMfCdreExport1Instance(t *testing.T) {
|
||||
|
||||
func TestMfEnvReaderITRead(t *testing.T) {
|
||||
expected := GeneralCfg{
|
||||
NodeID: "d80fac5",
|
||||
Logger: "*syslog",
|
||||
LogLevel: 6,
|
||||
HttpSkipTlsVerify: false,
|
||||
RoundingDecimals: 5,
|
||||
DBDataEncoding: "msgpack",
|
||||
TpExportPath: "/var/spool/cgrates/tpe",
|
||||
PosterAttempts: 3,
|
||||
FailedPostsDir: "/var/spool/cgrates/failed_posts",
|
||||
DefaultReqType: utils.META_PSEUDOPREPAID,
|
||||
DefaultCategory: "call",
|
||||
DefaultTenant: "cgrates.org",
|
||||
DefaultCaching: utils.MetaReload,
|
||||
DefaultTimezone: "Local",
|
||||
ConnectAttempts: 3,
|
||||
Reconnects: -1,
|
||||
ConnectTimeout: time.Duration(1 * time.Second),
|
||||
ReplyTimeout: time.Duration(2 * time.Second),
|
||||
LockingTimeout: time.Duration(0),
|
||||
DigestSeparator: ",",
|
||||
DigestEqual: ":",
|
||||
RSRSep: ";",
|
||||
MaxParralelConns: 100,
|
||||
FailedPostsTTL: 5 * time.Second,
|
||||
NodeID: "d80fac5",
|
||||
Logger: "*syslog",
|
||||
LogLevel: 6,
|
||||
HttpSkipTlsVerify: false,
|
||||
RoundingDecimals: 5,
|
||||
DBDataEncoding: "msgpack",
|
||||
TpExportPath: "/var/spool/cgrates/tpe",
|
||||
PosterAttempts: 3,
|
||||
FailedPostsDir: "/var/spool/cgrates/failed_posts",
|
||||
DefaultReqType: utils.META_PSEUDOPREPAID,
|
||||
DefaultCategory: "call",
|
||||
DefaultTenant: "cgrates.org",
|
||||
DefaultCaching: utils.MetaReload,
|
||||
DefaultTimezone: "Local",
|
||||
ConnectAttempts: 3,
|
||||
Reconnects: -1,
|
||||
ConnectTimeout: time.Duration(1 * time.Second),
|
||||
ReplyTimeout: time.Duration(2 * time.Second),
|
||||
LockingTimeout: time.Duration(0),
|
||||
DigestSeparator: ",",
|
||||
DigestEqual: ":",
|
||||
RSRSep: ";",
|
||||
MaxParralelConns: 100,
|
||||
FailedPostsTTL: 5 * time.Second,
|
||||
ConcurrentStrategy: utils.MetaBusy,
|
||||
}
|
||||
if !reflect.DeepEqual(expected, *mfCgrCfg.generalCfg) {
|
||||
t.Errorf("Expected: %+v\n, recived: %+v", utils.ToJSON(expected), utils.ToJSON(*mfCgrCfg.generalCfg))
|
||||
|
||||
Reference in New Issue
Block a user