Commit Graph

69 Commits

Author SHA1 Message Date
ionutboangiu
62619ba3a5 Replace interface{} with any 2023-06-05 10:55:32 +02:00
gezimbll
00961123ff Improving coverage tests at engine 2023-05-18 19:29:24 +02:00
ionutboangiu
cb7ea790de Update rpcclient library to latest version
Replace all instances of rpcclient.ClientConnector with birpc.ClientConnector.

Pass context, maxReconnectInterval, delayFunc and birpcClient to rpcclient
constructors.

Remove redundant time.Duration conversions (e.g. time.Duration(1*time.Second)
now becomes time.Second.

Add context where needed (context.Background() for tests, context.TODO()
for places where it should be passed from somewhere else).

Implement that functionality of the SessionSv1.Sleep call, in sessions/sessions
instead of apier/v1.

Make changes in utils/server.go (replacing the old rpc2 library with github.com/cgrates/birpc).

Change the way we register birpc methods for sessions in services, using a helper function
defined in engine/libengine.go.
2023-05-03 10:02:15 +02:00
gezimbll
67d9c634f6 Improving coverage tests engine 2023-03-10 14:14:16 +01:00
gezimbll
0f6ef42c2d improving coverage test at engine 2023-03-08 19:14:24 +01:00
gezimbll
795706b73c improving coverage at engine 2023-02-02 17:49:05 +01:00
gezimbll
46c4a22825 improving coverage at engine 2023-02-02 09:39:36 +01:00
Trial97
999aabdf9f Updated FieldName for attributes 2020-01-20 14:44:36 +02:00
TeoV
35d19ab4b2 Add TTL option for DataDB/StorDB for type *internal 2020-01-14 08:42:10 -05:00
Trial97
ff8a7f23f0 Added nested_fields config 2020-01-10 08:04:45 +02:00
TeoV
7b72c943a0 Add connections from remote and replicate throuh ConnManager 2020-01-06 09:27:34 -05:00
adragusin
aff4d16e84 Updated Clone functions 2019-12-13 02:40:30 -05:00
TeoV
18150825bb Add connections from Suppliers through ConnManager 2019-12-12 08:52:49 +02:00
Trial97
28cc543389 Updated NewInternalDB 2019-12-02 11:07:48 +02:00
DanB
33483edc93 Modified NewInternalDB signature to include encoding, renamed MetaJSONRpc -> MetaJSON 2019-11-29 20:54:32 +01:00
TeoV
4f563aa5ee Update filters and dataProvider to include ~*req as refix 2019-11-27 11:10:32 -05:00
TeoV
714e37fa63 Populate in data manager rmtDataDbConns and rplDataDBConns 2019-11-03 12:59:10 +01:00
Trial97
61fc8c98a3 Added DataManager as Service 2019-10-28 12:17:15 +01:00
TeoV
d3e7867535 Add StorDBPrefixIndexedFields for customize cdr indexes for InternalDB 2019-10-04 20:17:40 +02:00
Trial97
1ffdec31c2 Added SupplierS as service in ServiceManager 2019-09-17 18:07:53 +02:00
TeoV
4b051121f9 Move constats from engine to utils and remove duplicate structures 2019-08-04 13:23:30 +02:00
TeoV
bdc57998f0 Replacing CGREvent with *CGRevent when inherited for SupplierService 2019-05-28 15:23:19 +02:00
DanB
8720d45131 SortedSuppliers.Count attribute 2019-04-26 20:24:16 +02:00
Tripon Alexandru-Ionut
0f9ad87d50 Updated GetSupplierProfilesForEvent 2019-04-18 15:04:10 +03:00
Trial97
dfda3ffe72 Added indexed_selects option per subsystem 2019-03-13 13:39:51 +01:00
Trial97
e949b3e37f Updated basic test for dynamic filter values 2019-03-06 16:05:01 +01:00
Trial97
bb14e68b0c Modified matching functions for attributes and supliers to return only the best found 2019-02-14 15:48:58 +01:00
Trial97
a4896dbc32 Added General config 2018-10-05 20:33:28 +03:00
TeoV
8f90f0730e Clarify cacheRead / cacheWrite for suppliers 2018-09-24 12:26:35 +02:00
TeoV
909358a124 Update Suppliers stategy 2018-08-01 19:56:36 +02:00
DanB
ed6c02c551 Adding AttributeS connection within SupplierS 2018-07-24 19:34:55 +02:00
TeoV
b0c2e67c7e Fixes #1141 and add Charger indexes in cgr-loader 2018-07-13 19:32:11 +02:00
TeoV
9dcf1d9017 Update test in engine to be compatible with new indexing 2018-07-06 14:37:09 +02:00
TeoV
509ed8a959 Add option indexed_selects in filter cfg 2018-07-05 13:06:15 +02:00
Anevo
ff757a29fa Changed IgnoreErrors to true 2018-04-14 11:24:45 +02:00
Anevo
492f703d43 Added test for suppliers.ArgsGetSuppliers.asOptsGetSuppliers for IgnoreErrors and MaxCost 2018-04-10 13:51:04 +02:00
Anevo
54b81a511f Removed Printf 2018-04-10 13:51:04 +02:00
Anevo
9c77b42f15 Test suppliers.ArgsGetSuppliers.asOptsGetSuppliers 2018-04-10 13:51:04 +02:00
TeoV
6ee1d550f2 Update ComputeFilterIndexer to consider transactionID 2018-03-05 18:05:50 +01:00
TeoV
0c718a919c Recompute filter indexes to use transactions and resolve connection between statS/resourceS and thresholdS 2018-02-27 14:26:32 +01:00
TeoV
65e1b409b0 Refactoring code and Update struct for Suppliers ( SoringParams -> SoringParameters) 2018-02-11 18:27:56 +01:00
edwardro22
9c8fc62ba4 Removed empty lines 2018-02-05 19:33:12 +01:00
TeoV
67b621e456 Renaming RequesFilter -> FilterRule and ReqFilterIndexer -> FilterIndexer 2018-01-31 18:31:07 +01:00
TeoV
a12d80d415 Remove Blocker from SupplierProfile and add to Supplier 2018-01-31 11:32:45 +01:00
edwardro22
f803431026 Fixed tests for suppliers and attributes 2018-01-29 12:11:24 +01:00
DanB
cda022b2e5 Disabling attributes and suppliers tests 2018-01-28 11:36:22 +01:00
edwardro22
1f5207cbf2 Refactored Tests 2018-01-26 18:42:53 +02:00
edwardro22
93920df182 Added Thresholds_test.go 2018-01-26 15:53:58 +02:00
edwardro22
5249ef958f Updated suppliers_test.go 2018-01-24 10:44:05 +02:00
DanB
76a53102fd Filter type *stringprefix -> *prefix, config options prefix_indexed_fields, defaults for string_indexed_fields pointing to nil 2018-01-23 18:10:47 +01:00