Commit Graph

31 Commits

Author SHA1 Message Date
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
68b06d573a Improving Unit Test Coverage for Engine 2023-04-06 11:49:37 +02:00
gezimbll
795706b73c improving coverage at engine 2023-02-02 17:49:05 +01:00
Trial97
e5c97a94ab Renamed META_DEFAULT to MetaDefault 2019-12-13 15:04:34 +02:00
adragusin
9aa79f1417 Added test for Balance.IsExpiredAt 2019-11-20 11:01:25 +01:00
TeoV
47e7e67f42 Add test for special cases for account with multiple balance of the same type 2019-05-07 16:28:34 +02:00
TeoV
bea5803f76 Add 2 new actions (*topup_zero_negative and *set_expiry) and test for them 2018-02-14 13:23:08 +01:00
DanB
401625861d Updated project README, COPYRIGHT information 2016-09-02 13:04:34 +02:00
Radu Ioan Fericean
34971c3f5a action triger ID refactoring 2016-02-24 18:15:09 +02:00
Radu Ioan Fericean
1777a6e1a5 renamed Id to ID in balance 2016-02-23 21:03:58 +02:00
Radu Ioan Fericean
418a9cf12f most engine tests passing
ResetAccountPending
2016-02-19 13:20:07 +02:00
Radu Ioan Fericean
b2253e6385 refactoring 2016-02-19 13:20:07 +02:00
Radu Ioan Fericean
097c0073a0 engine compiling 2016-02-19 13:20:07 +02:00
Radu Ioan Fericean
4b40c761e0 unit tests passing 2015-11-03 16:53:34 +02:00
Radu Ioan Fericean
23d85af439 timing ids and sharedgroup are now maps 2015-10-28 21:03:40 +02:00
Radu Ioan Fericean
9782769d9b fix for default balance test 2015-10-22 16:05:32 +03:00
Radu Ioan Fericean
41c6a597aa direction as simple balance filter
work in proggress
2015-10-21 19:26:45 +03:00
Radu Ioan Fericean
d2b4df69ca Balance DestinationId now take multiple destinations 2015-05-16 00:01:30 +03:00
Radu Ioan Fericean
bf0ac94a8d updated copyright info 2015-03-11 19:49:52 +02:00
Radu Ioan Fericean
39a85a76de cleanned all vet's warnings 2015-02-05 23:20:50 +02:00
Radu Ioan Fericean
ef101ce3b0 nil balance map fix
fix for adding default balance on uninitialized account
2015-01-06 14:21:40 +02:00
Radu Ioan Fericean
0bb8691101 balance activation times 2014-12-22 23:02:14 +02:00
Radu Ioan Fericean
2dd3f6527d added balance tag for action triggers
also chenged the names of direction and destination params (prefixxed
with balance)
2014-12-04 20:13:19 +02:00
Radu Ioan Fericean
5e7eec3685 updated copyright year 2014-11-27 21:27:00 +02:00
Radu Ioan Fericean
a5bf017085 test balance match action trigger 2014-07-17 19:16:15 +03:00
Radu Ioan Fericean
7313e64362 rename RateSubject to RatingSubject 2014-04-06 12:58:21 +03:00
Radu Ioan Fericean
22adfb552f debit from shared group empty balances 2014-03-20 17:27:29 +02:00
Radu Ioan Fericean
c889eafb20 removed special price 2013-10-03 20:14:45 +03:00
Radu Ioan Fericean
7db0919be0 started removing special rates and adding new rate subject 2013-10-02 22:30:42 +03:00
Radu Ioan Fericean
cd98141fbb still working on balance subject debit 2013-09-23 19:26:40 +03:00
Radu Ioan Fericean
f3f9d03c80 before switching to MINUTES+OUTBOUND 2013-09-05 20:17:14 +03:00