Commit Graph

265 Commits

Author SHA1 Message Date
ionutboangiu
e228dda013 Improve test setup helpers
- added hook support (executed after parsing config but before
starting engine)
- made db resets configurable
- merged config parsing helper with the main Setup function
- removed engineDelay parameter
- replaced t.Log with t.Error for engine process kill error
- improved option comments
2024-09-23 20:28:26 +02:00
gezimblliku
0f81b78321 updated trend profile && trends service implementation 2024-09-23 11:48:04 +02:00
ionutboangiu
169b5500d3 Revise err handling for CSV storage constructor
NewFileCSVStorage() now returns an error besides the storage struct itself, which is
logged and returned instead of calling log.Fatal() which was causing the engine to
crash.

Fixed compilation errors by creating the CSVStorage separately and passing it as an
argument to the TpReader constructor.

Fixes #3962
2024-09-05 20:46:40 +02:00
ionutboangiu
8426892ac6 revise integration tests script 2024-08-21 20:59:10 +02:00
ionutboangiu
0f70af84e9 centralize test flags for shared use across tests 2024-08-15 18:17:33 +02:00
ionutboangiu
9d59e88552 Add the test suite
Similar to the one from v0.11. Has different csv loading logic and passes
context.
2024-08-15 18:17:33 +02:00
ionutboangiu
0dfb3b860d Centralize RPCClient constructor 2024-08-15 18:17:33 +02:00
ionutboangiu
7c5d56c1de Combine csv loader tests
- ensures the tpreader is not eating memory even when tests are
not being run (before it was being constructed in an init())
2024-08-15 18:17:33 +02:00
gezimblliku
73a7590f1c added profiles,configs and services for trend && ranking 2024-08-02 09:37:52 +02:00
gezimbll
3ff0e6e5a1 revising integration tests 2024-06-07 17:18:23 +02:00
gezimbll
32ed816de7 Replacing IsSliceMember ,CloneStringSlice and SliceStringEqual with slices package functions 2023-11-01 21:38:27 +01:00
gezimbll
5b5a159706 Added sentrypeer filter type 2023-08-02 16:49:33 +02:00
ionutboangiu
df1dc5e838 Add StorDB service
Add StorDB to config and services.

Put back the store_cdrs option under cdrs and update the CDRs
service to depend on StorDB.

Define the StorDB interface and add a constructor for it.

Add a constructor for postgres storage.

Add a config sanity check to validate SSL modes for postgres.

Update cgr-engine to consider StorDB on startup.
2023-05-03 10:05:28 +02:00
ionutboangiu
dd7bab666f Repair failing unit tests after adding max_reconnect_interval option 2022-07-03 13:08:52 +02:00
ionutboangiu
70ea038f08 Update FibDuration function 2022-07-03 13:08:52 +02:00
ionutboangiu
7299b09107 Add max_reconnect_interval for dispatcherhost csv models 2022-07-03 13:08:52 +02:00
ionutboangiu
ebee8c1233 Remove actionblockers 2022-05-06 20:49:11 +02:00
porosnicuadrian
cea929269a Blockers for account/balance + tp/cfgs and tests 2022-05-06 17:00:30 +02:00
porosnicuadrian
3c4aa8876d Added blockers for accounts 2022-05-06 17:00:30 +02:00
porosnicuadrian
5537e8993d Improved stats + tests 2022-05-06 17:00:30 +02:00
ionutboangiu
887b6db5b8 Add blockers field to chargers + tests 2022-04-29 20:33:51 +02:00
ionutboangiu
52c79ca8db Change RouteBlockers type from bool to DynamicBlockers 2022-04-29 20:33:51 +02:00
ionutboangiu
065ffcfbdf Change blocker type from bool to DynamicBlockers for APActions 2022-04-29 20:33:51 +02:00
porosnicuadrian
9197a10f42 Moved AttributeBlockers next to filterIDs 2022-04-29 14:43:18 +02:00
porosnicuadrian
eddfe1776b Organized stats fields + route blockers + improved tests 2022-04-28 17:14:05 +03:00
ionutboangiu
aca1dc2cff Change blockers field's position within RouteProfile 2022-04-28 08:52:03 +02:00
ionutboangiu
39c2d97333 Add Blockers field to ActionProfile + tests 2022-04-28 08:52:03 +02:00
ionutboangiu
147cc8f8f0 Add Blockers field for RouteProfiles 2022-04-28 08:52:03 +02:00
porosnicuadrian
41a7ee8add DynamicBlocker for stats + unit test 2022-04-27 17:49:14 +02:00
porosnicuadrian
6561d4d110 New AttributeBlocker 2022-04-27 17:49:14 +02:00
porosnicuadrian
85ba81c71f Moved blocker next to weights + it tests fixes 2022-04-27 13:03:59 +02:00
porosnicuadrian
bc5f1b5e10 Updated configs for Blockers and unused configs 2022-04-21 15:27:27 +02:00
porosnicuadrian
b16b44732e Modified blocker into Blockers for attributes 2022-04-21 15:27:27 +02:00
andronache98
ecdf5e54ea Changed headers 2022-03-09 14:14:30 +01:00
andronache98
9ec56f5155 Changed headers 2022-03-09 14:14:30 +01:00
andronache98
03793c0082 Removed storDB from config 2022-03-09 14:14:30 +01:00
porosnicuadrian
4a2b8ff6e1 Fixed loaders cfg and weights 2022-03-07 10:58:21 +02:00
andronache98
fad736e5a6 Changed Weights from float64 to DynamicWeights for Resources and Chargers 2022-02-13 15:09:53 +02:00
andronache98
ffb41e083b Fixed tests 2022-02-10 10:48:29 +02:00
andronache98
3432bbd853 Repaired tests 2022-02-08 19:08:45 +01:00
andronache98
7649028a99 Fixed tests for Stats 2022-02-06 09:52:26 +01:00
andronache98
ff9257fd64 Repaired most tests 2022-02-06 09:52:26 +01:00
Trial97
cb809f976e Updated internal datadb 2021-10-28 18:03:43 +03:00
porosnicuadrian
8f6d7ff5ab FIxed tests for units/increment type 2021-10-14 18:16:18 +03:00
Trial97
6bff7dfb9b Updated Redis storage 2021-10-08 11:12:50 +03:00
Trial97
6a3f8ddc57 Updated config 2021-09-20 10:45:14 +02:00
Trial97
a5d95f9fe7 Updated Routes with DynamicWeights 2021-08-30 17:53:42 +03:00
ionutboangiu
59d7e71e4f Rename Route field RatingPlanIDs to RateProfileIDs 2021-08-27 17:33:19 +02:00
nickolasdaniel
96f11748e2 Removed synchronous field from DispatcherHost and RemoteHost, as well as switched DispatchHost csv files 2021-07-25 12:07:09 +02:00
nickolasdaniel
d8a803db0b Added extra fields for DispatcherHost such as in RemoteHost in rpcconn.go 2021-07-15 18:40:12 +02:00