Updated tests for registrarc

This commit is contained in:
Trial97
2021-03-02 09:11:40 +02:00
committed by Dan Christian Bogos
parent 54ee982314
commit e017c7a292
13 changed files with 55 additions and 168 deletions

View File

@@ -82,9 +82,9 @@ func TestDspHosts(t *testing.T) {
}
func testDsphInitCfg(t *testing.T) {
dspCfgPath = path.Join(*dataDir, "conf", "samples", "dispatcherh", dspDir)
allCfgPath = path.Join(*dataDir, "conf", "samples", "dispatcherh", allDir)
all2CfgPath = path.Join(*dataDir, "conf", "samples", "dispatcherh", all2Dir)
dspCfgPath = path.Join(*dataDir, "conf", "samples", "registrarc", dspDir)
allCfgPath = path.Join(*dataDir, "conf", "samples", "registrarc", allDir)
all2CfgPath = path.Join(*dataDir, "conf", "samples", "registrarc", all2Dir)
var err error
if dspCfg, err = config.NewCGRConfigFromPath(dspCfgPath); err != nil {
t.Error(err)
@@ -112,7 +112,7 @@ func testDsphStartEngine(t *testing.T) {
}
func testDsphLoadData(t *testing.T) {
loader := exec.Command("cgr-loader", "-config_path", dspCfgPath, "-path", path.Join(*dataDir, "tariffplans", "dispatcherh"), "-caches_address=")
loader := exec.Command("cgr-loader", "-config_path", dspCfgPath, "-path", path.Join(*dataDir, "tariffplans", "registrarc"), "-caches_address=")
output := bytes.NewBuffer(nil)
outerr := bytes.NewBuffer(nil)
loader.Stdout = output