Updated config APIs and added integration tests

This commit is contained in:
Trial97
2020-11-18 13:08:25 +02:00
committed by Dan Christian Bogos
parent b0208c29f0
commit ffcb95e2ca
37 changed files with 178 additions and 123 deletions

View File

@@ -65,7 +65,7 @@ func TestFreeSwitchAgentReload(t *testing.T) {
t.Errorf("Expected service to be down")
}
var reply string
if err := cfg.V1ReloadConfigFromPath(&config.ConfigReloadWithOpts{
if err := cfg.V1ReloadConfig(&config.ConfigReloadArgs{
Path: path.Join("/usr", "share", "cgrates", "tutorial_tests", "fs_evsock", "cgrates", "etc", "cgrates"),
Section: config.FreeSWITCHAgentJSN,
}, &reply); err != nil {