Updated dispatcher tests

This commit is contained in:
Tripon Alexandru-Ionut
2019-04-08 19:40:27 +03:00
committed by Dan Christian Bogos
parent 1ea76024b3
commit 3dc6a4bf0d
2 changed files with 5 additions and 4 deletions

View File

@@ -191,8 +191,9 @@ func startRater(internalRaterChan, internalApierv1, internalApierv2 chan rpcclie
if !cfg.DispatcherSCfg().Enabled {
server.RpcRegister(responder)
}
server.RpcRegister(apierRpcV1) // ToDo: Add apierv1 to dispatcher
server.RpcRegister(apierRpcV2) // ToDo: Add apierv2 to dispatcher
// ToDo: do not register when dispatcher is active
server.RpcRegister(apierRpcV1)
server.RpcRegister(apierRpcV2)
utils.RegisterRpcParams("", &v1.CDRsV1{})
utils.RegisterRpcParams("", &v2.CDRsV2{})

View File

@@ -32,11 +32,11 @@ var sTestsDspCDRs = []func(t *testing.T){
//Test start here
func TestDspCDRsITMySQL(t *testing.T) {
testDsp(t, sTestsDspCDRs, "TestDspCDRs", "all", "all2", "attributes", "dispatchers", "tutorial", "oldtutorial", "dispatchers")
testDsp(t, sTestsDspCDRs, "TestDspCDRs", "all", "all2", "dispatchers", "tutorial", "oldtutorial", "dispatchers")
}
func TestDspCDRsITMongo(t *testing.T) {
testDsp(t, sTestsDspCDRs, "TestDspCDRs", "all", "all2", "attributes_mongo", "dispatchers_mongo", "tutorial", "oldtutorial", "dispatchers")
testDsp(t, sTestsDspCDRs, "TestDspCDRs", "all", "all2", "dispatchers_mongo", "tutorial", "oldtutorial", "dispatchers")
}
func testDspCDRsPing(t *testing.T) {