mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
Updated dispatcher tests
This commit is contained in:
committed by
Dan Christian Bogos
parent
1ea76024b3
commit
3dc6a4bf0d
@@ -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{})
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user