mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-16 13:49:53 +05:00
Skip restart engine tests in apier/v1 for InternalDB
This commit is contained in:
committed by
Dan Christian Bogos
parent
4b3a7cc8c8
commit
f89e376632
@@ -521,6 +521,9 @@ func testV1RsReleaseResource(t *testing.T) {
|
||||
}
|
||||
|
||||
func testV1RsDBStore(t *testing.T) {
|
||||
if rlsV1ConfDIR == "tutinternal"{
|
||||
t.SkipNow()
|
||||
}
|
||||
argsRU := utils.ArgRSv1ResourceUsage{
|
||||
UsageID: "651a8db2-4f67-4cf8-b622-169e8a482e71",
|
||||
CGREvent: &utils.CGREvent{
|
||||
|
||||
@@ -297,6 +297,10 @@ func testV1STSProcessEvent(t *testing.T) {
|
||||
}
|
||||
|
||||
func testV1STSGetStatsAfterRestart(t *testing.T) {
|
||||
// in case of internal we skip this test
|
||||
if stsV1ConfDIR == "tutinternal" {
|
||||
t.SkipNow()
|
||||
}
|
||||
time.Sleep(time.Second)
|
||||
if _, err := engine.StopStartEngine(stsV1CfgPath, *waitRater); err != nil {
|
||||
t.Fatal(err)
|
||||
|
||||
@@ -24,16 +24,16 @@ import (
|
||||
"net/rpc/jsonrpc"
|
||||
"path"
|
||||
"reflect"
|
||||
"sort"
|
||||
"testing"
|
||||
"time"
|
||||
"sort"
|
||||
|
||||
"github.com/cgrates/cgrates/config"
|
||||
"github.com/cgrates/cgrates/engine"
|
||||
"github.com/cgrates/cgrates/utils"
|
||||
)
|
||||
|
||||
var (
|
||||
var (
|
||||
tSv1CfgPath string
|
||||
tSv1Cfg *config.CGRConfig
|
||||
tSv1Rpc *rpc.Client
|
||||
@@ -326,6 +326,10 @@ func testV1TSGetThresholdsAfterProcess(t *testing.T) {
|
||||
}
|
||||
|
||||
func testV1TSGetThresholdsAfterRestart(t *testing.T) {
|
||||
// in case of internal we skip this test
|
||||
if tSv1ConfDIR == "tutinternal" {
|
||||
t.SkipNow()
|
||||
}
|
||||
time.Sleep(time.Second)
|
||||
if _, err := engine.StopStartEngine(tSv1CfgPath, *waitRater); err != nil {
|
||||
t.Fatal(err)
|
||||
@@ -404,7 +408,7 @@ func testV1TSUpdateThresholdProfile(t *testing.T) {
|
||||
if err := tSv1Rpc.Call("ApierV1.GetThresholdProfile",
|
||||
&utils.TenantID{Tenant: "cgrates.org", ID: "THD_Test"}, &reply); err != nil {
|
||||
t.Error(err)
|
||||
} else{
|
||||
} else {
|
||||
sort.Strings(reply.FilterIDs)
|
||||
sort.Strings(tPrfl.ThresholdProfile.FilterIDs)
|
||||
if !reflect.DeepEqual(tPrfl.ThresholdProfile, reply) {
|
||||
|
||||
Reference in New Issue
Block a user