Update integration test for services after merge

This commit is contained in:
TeoV
2020-08-26 12:03:22 +03:00
committed by Dan Christian Bogos
parent b206feffcb
commit 13dce13a10

View File

@@ -71,6 +71,15 @@ func TestEventExporterSReload(t *testing.T) {
if ees.IsRunning() {
t.Errorf("Expected service to be down")
}
fcTmp := &config.FCTemplate{Tag: "TenantID",
Path: "Tenant",
Type: utils.MetaVariable,
Value: config.NewRSRParsersMustCompile("~*req.0", utils.INFIELD_SEP),
Mandatory: true,
Layout: time.RFC3339,
}
fcTmp.ComputePath()
cfg.TemplateCfg()["requiredFields"] = []*config.FCTemplate{fcTmp}
var reply string
if err := cfg.V1ReloadConfigFromPath(&config.ConfigReloadWithOpts{
Path: path.Join("/usr", "share", "cgrates", "conf", "samples", "ees"),