mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 10:06:24 +05:00
Add action type *dynamic_route
This commit is contained in:
committed by
Dan Christian Bogos
parent
ea5ed9eaad
commit
7bf0d2d162
@@ -912,7 +912,7 @@ func testFltrRplResourceProfile(t *testing.T) {
|
||||
|
||||
func testFltrRplRouteProfile(t *testing.T) {
|
||||
rpID := "RT1"
|
||||
rpPrf := &v1.RouteWithAPIOpts{
|
||||
rpPrf := &engine.RouteWithAPIOpts{
|
||||
RouteProfile: &engine.RouteProfile{
|
||||
Tenant: "cgrates.org",
|
||||
ID: rpID,
|
||||
|
||||
@@ -29,7 +29,6 @@ import (
|
||||
|
||||
"github.com/cgrates/birpc"
|
||||
"github.com/cgrates/birpc/context"
|
||||
v1 "github.com/cgrates/cgrates/apier/v1"
|
||||
"github.com/cgrates/cgrates/config"
|
||||
"github.com/cgrates/cgrates/engine"
|
||||
"github.com/cgrates/cgrates/utils"
|
||||
@@ -39,7 +38,7 @@ var (
|
||||
splSv1CfgPath string
|
||||
splSv1Cfg *config.CGRConfig
|
||||
splSv1Rpc *birpc.Client
|
||||
splPrf *v1.RouteWithAPIOpts
|
||||
splPrf *engine.RouteWithAPIOpts
|
||||
splSv1ConfDIR string //run tests for specific configuration
|
||||
|
||||
sTestsSupplierSV1 = []func(t *testing.T){
|
||||
@@ -131,7 +130,7 @@ func testV1SplSSetRouteProfilesWithoutRatingPlanIDs(t *testing.T) {
|
||||
err.Error() != utils.ErrNotFound.Error() {
|
||||
t.Error(err)
|
||||
}
|
||||
splPrf = &v1.RouteWithAPIOpts{
|
||||
splPrf = &engine.RouteWithAPIOpts{
|
||||
RouteProfile: &engine.RouteProfile{
|
||||
Tenant: "cgrates.org",
|
||||
ID: "TEST_PROFILE2",
|
||||
@@ -193,7 +192,7 @@ func testV1SplSAddNewRoutePrf(t *testing.T) {
|
||||
t.Error(err)
|
||||
}
|
||||
//create a new Supplier Profile to test *reas and *reds sorting strategy
|
||||
splPrf = &v1.RouteWithAPIOpts{
|
||||
splPrf = &engine.RouteWithAPIOpts{
|
||||
RouteProfile: &engine.RouteProfile{
|
||||
Tenant: "cgrates.org",
|
||||
ID: "ROUTE_ResourceTest",
|
||||
@@ -463,7 +462,7 @@ func testV1SplSAddNewRoutePrf2(t *testing.T) {
|
||||
t.Error(err)
|
||||
}
|
||||
//create a new Supplier Profile to test *reas and *reds sorting strategy
|
||||
splPrf = &v1.RouteWithAPIOpts{
|
||||
splPrf = &engine.RouteWithAPIOpts{
|
||||
RouteProfile: &engine.RouteProfile{
|
||||
Tenant: "cgrates.org",
|
||||
ID: "ROUTE_ResourceDescendent",
|
||||
|
||||
@@ -30,7 +30,6 @@ import (
|
||||
|
||||
"github.com/cgrates/birpc"
|
||||
"github.com/cgrates/birpc/context"
|
||||
v1 "github.com/cgrates/cgrates/apier/v1"
|
||||
"github.com/cgrates/cgrates/config"
|
||||
"github.com/cgrates/cgrates/engine"
|
||||
"github.com/cgrates/cgrates/utils"
|
||||
@@ -40,7 +39,7 @@ var (
|
||||
rtsCaseSv1CfgPath string
|
||||
rtsCaseSv1Cfg *config.CGRConfig
|
||||
rtsCaseSv1Rpc *birpc.Client
|
||||
rtsCasePrf *v1.RouteWithAPIOpts
|
||||
rtsCasePrf *engine.RouteWithAPIOpts
|
||||
rtsCaseSv1ConfDIR string //run tests for specific configuration
|
||||
|
||||
sTestsRtsCaseSV1 = []func(t *testing.T){
|
||||
|
||||
Reference in New Issue
Block a user