ionutboangiu
c0b665a015
Make go vet pass
...
The rpcclient constructor could not see the centralized
Encoding flag because it didn't have the necessary build
constraints. Added the constraints in lib_test.go files
where it wasn't alone. In all the other cases, it was
moved to the first file where it was needed.
Moved resources cache tests relying on DBType flag value
to a separate integration test file. Before it was getting
skipped for *internal anyway.
2024-06-06 11:13:32 +02:00
ionutboangiu
454c0552f2
Centralize test flags in utils for shared use across tests
2024-06-06 11:13:32 +02:00
NikolasPetriti
df9947730c
Add coverage tests for balances.go, resources.go and storage_utils.go
2023-07-13 10:23:31 +02:00
ionutboangiu
b7d172f78a
Fix misspellings
2023-06-21 11:02:39 +02:00
ionutboangiu
62619ba3a5
Replace interface{} with any
2023-06-05 10:55:32 +02:00
ionutboangiu
d8464ce023
Update libraries
2023-05-03 10:02:15 +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
ae037931d0
Improving coverage tests at engine
2023-04-06 11:49:37 +02:00
gezimbll
4673b0023f
Improving coverage of unit tests
2023-04-06 11:49:37 +02:00
gezimbll
c5abf600cf
Improving coverage tests at engine
2023-03-15 11:43:43 +01:00
gezimbll
51af0635b0
Improving coverage test at engine
2023-03-15 11:43:43 +01:00
ionutboangiu
758a94280a
Apply project wide fmt
2022-11-16 10:13:44 +01:00
andronache
abb47e2b65
Modified test to not panic du
2021-10-04 11:33:05 +02:00
Trial97
308352ed1e
Added tests for resources
2021-07-23 11:01:39 +02:00
Trial97
4ea2d18463
Updated resources unit tests
2021-07-23 11:01:39 +02:00
DanB
360b149f81
Resources locking at API level
2021-07-23 11:01:39 +02:00
TeoV
3461db493d
[CacheS] CacheDataFromDB only if limit for items is different than 0
2020-05-11 17:10:25 +02: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
TeoV
9435b99f1d
Add connection from ThresholdS to ResourceS 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
9427fad424
Added ResourceS 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
eaeddd581b
Replacing CGREvent with *CGRevent when inherited for ResourceService
2019-05-28 15:23:19 +02:00
TeoV
dbd9bf243b
Add unit test for caching Resources and rest of the functions
2019-04-15 14:09:26 +02:00
DanB
5bd32644ef
Test update for allocation with dryRun
2019-04-14 20:37:27 +02:00
DanB
81b03d9ce7
Simplified caching in case of ResourceS
2019-04-14 20:28:38 +02:00
TeoV
3ac9852e2f
Move Caching for Resource
2019-03-25 17:40:51 +01: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
a4896dbc32
Added General config
2018-10-05 20:33:28 +03:00
TeoV
6d5c379e12
Clarify cacheRead/ cacheWrite for resourceProfile
2018-09-24 17:54:33 +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
DanB
9d196c1427
Engine using TransCache instead of built-in
2018-03-06 17:20:04 +01: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
1e2f133757
Add *unlimited for resource usage and update tests
2018-02-27 14:26:32 +01:00
TeoV
4dfe7372fc
Add test for Resource UsageTTL
2018-02-12 15:55:54 +02:00
TeoV
8811fd36e2
Dynamic usage_ttl for resources
2018-02-12 12:29:15 +01:00
TeoV
d78d34553a
Test Resources.cachedResourcesForEvent
2018-02-09 12:33:28 +01:00
edwardro22
ea3e15140f
Added tests for resources
2018-02-05 19:33:12 +01:00