Add action type *dynamic_route

This commit is contained in:
arberkatellari
2025-05-29 16:53:25 +02:00
committed by Dan Christian Bogos
parent ea5ed9eaad
commit 7bf0d2d162
13 changed files with 397 additions and 30 deletions

View File

@@ -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,

View File

@@ -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",

View File

@@ -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){