mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-12 18:46:24 +05:00
revised janusagent and thresholds it test
This commit is contained in:
committed by
Dan Christian Bogos
parent
db0e663560
commit
c41bbcf119
@@ -44,6 +44,7 @@ var (
|
||||
janCfgPath string
|
||||
janCfgDIR string
|
||||
janCfg *config.CGRConfig
|
||||
janBin string
|
||||
janRPC *birpc.Client
|
||||
sTestsJanus = []func(t *testing.T){
|
||||
testJanitInitCfg,
|
||||
@@ -66,6 +67,10 @@ func TestJanusit(t *testing.T) {
|
||||
default:
|
||||
t.Fatal("Unknown Database type")
|
||||
}
|
||||
janBin, err = exec.LookPath("/opt/janus/bin/janus")
|
||||
if err != nil || janBin == "" {
|
||||
t.SkipNow()
|
||||
}
|
||||
for _, stests := range sTestsJanus {
|
||||
t.Run(janCfgDIR, stests)
|
||||
}
|
||||
@@ -104,10 +109,6 @@ func testJanitApierRpcConn(t *testing.T) {
|
||||
}
|
||||
|
||||
func testJanCmd(t *testing.T) {
|
||||
janBin, err := exec.LookPath("/opt/janus/bin/janus")
|
||||
if err != nil || janBin == "" {
|
||||
t.SkipNow()
|
||||
}
|
||||
cmd := exec.Command(janBin)
|
||||
if err := cmd.Start(); err != nil {
|
||||
t.Fatal(err)
|
||||
|
||||
@@ -700,6 +700,7 @@ func testV1TSUpdateSnooze(t *testing.T) {
|
||||
FilterIDs: []string{"*string:~*req.CustomEv:SnoozeEv"},
|
||||
MinSleep: 10 * time.Minute,
|
||||
Weight: 100,
|
||||
MaxHits: -1,
|
||||
},
|
||||
}
|
||||
//set
|
||||
|
||||
@@ -18,7 +18,6 @@
|
||||
"db_type": "*internal",
|
||||
},
|
||||
|
||||
|
||||
"rals": {
|
||||
"enabled": true,
|
||||
"max_increments":3000000,
|
||||
|
||||
Reference in New Issue
Block a user