Commit Graph

719 Commits

Author SHA1 Message Date
armirveliaj
0aae6f5d26 Add coverage tests on sessions && ips 2025-09-03 12:30:50 +02:00
ionutboangiu
3ee6355cd2 sessions: remove UpdateSRuns and lock manually in terminate 2025-09-02 07:47:03 +02:00
ionutboangiu
e81cb4fa9b sessions: ensure event is passed when updating session 2025-09-02 07:47:03 +02:00
ionutboangiu
788279596e sessions: fix deadlock using updateSRuns in updateSession 2025-09-02 07:47:03 +02:00
ionutboangiu
37acdd1723 sessions: port session APIs and flag handling 2025-08-30 14:02:48 +02:00
ionutboangiu
c4389a9ab6 sessions: rename IPAllocation reply field to AllocatedIP 2025-07-10 16:56:08 +02:00
ionutboangiu
4a1f3144ba sessions: partially reimplement TerminateSession
to be able to release IP allocs
2025-07-10 16:56:08 +02:00
ionutboangiu
063fcbc138 sessions: return AllocatedIP instead of just message 2025-07-10 16:56:08 +02:00
ionutboangiu
97969bb707 sessions: get originID from APIOpts instead of event 2025-07-10 16:56:08 +02:00
ionutboangiu
785236592b Port RADIUS DMR/CoA functionality
This commit ports the following changes from v0.11:

- 9991b29 - Implement DisconnectSession API for RADIUS Agent
- 02c8ed1 - Implement support for RADIUS CoA
- 7129d34 - Merge CoA into ReAuthorize logic
- d8ad760 - Update both ReAuthorize API signatures
- 5560608 - Dynamic templates for Radius CoA out of APIOpts
- f9d1c0f - Refactor ReAuthorize to AlterSessions
- 8388832 - Rename agents API object: SessionSv1 to AgentV1
- b580e09 - Add sanity checks for radius templates
- ca6a944 - Update client_da_addresses structure
- 98265a1 - Refactor function names and error msgs related to AlterSessions
- ee98dbe - Update AgentV1DisconnectSession api signature
- c9b6c1f - Add support for sending *dmr template via APIOpts
- 03eff44 - Cache RADIUS packets during accounting instead of auth
- 28e53ce - Add requests_cache_key field to radagent cfg
2025-07-08 08:18:30 +02:00
arberkatellari
09624ff660 Revise mongo decoding for decimals in interfaces 2025-07-06 19:46:53 +02:00
arberkatellari
1d8e84892a Revise postgres tp tables creation & fix tests 2025-07-02 21:45:29 +02:00
arberkatellari
7872d2f33b Improve valueQry function and filters validation 2025-07-02 21:45:29 +02:00
ionutboangiu
17b70d907b ips: integrate allocation logic and refactor structure 2025-06-27 20:42:41 +02:00
ionutboangiu
725c56592c fix compilation errors related to ip opts changes 2025-06-11 10:59:22 +02:00
ionutboangiu
d22727782e change IP API methods from plural to singular 2025-06-03 16:07:28 +02:00
ionutboangiu
805ae5d916 integrate ips with sessions (incomplete) 2025-06-01 14:04:28 +02:00
ionutboangiu
6557c13b61 remove unused chargers conn in test
to prevent errors due to chargers not being enabled
2025-05-26 08:22:23 +02:00
ionutboangiu
8d8af20ee1 ensure MaxAbstracts reply is the right type
to prevent panic while using *internal conn
2025-05-26 08:22:23 +02:00
arberkatellari
5847ceab00 Add and revise tests for offline internal DB 2025-05-13 17:07:17 +02:00
ionutboangiu
ac0b43a218 update session basics test 2025-05-12 17:31:19 +02:00
ionutboangiu
bd8c9d3b5e migrate guardian package to external dep 2025-04-22 19:35:11 +02:00
ionutboangiu
16d131b058 move attributes to dedicated package 2025-04-22 19:33:12 +02:00
ionutboangiu
069cadd618 move routes to dedicated package 2025-04-22 19:33:12 +02:00
ionutboangiu
0b26559d1f move chargers to dedicated package 2025-03-16 16:28:30 +01:00
gezimbll
2f808badb7 added cache parameter in Get*Opts methods 2025-03-12 15:24:18 +01:00
ionutboangiu
24d886c8e0 Pass CGRConfig to DataManager
instead of just CacheCfg. Prevents the need of global config var in
engine/datamanager.go
2025-03-10 13:49:34 +01:00
armirveliaj
d2c175141f Add coverage tests on SessionS 2025-02-13 19:17:20 +01:00
armirveliaj
ae8564ad50 Add coverage tests on sessionS 2025-02-07 13:26:56 +01:00
armirveliaj
6928674716 Add coverage tests on SessionS 2025-02-07 13:26:56 +01:00
gezimbll
df3dcfb840 replaced CGREvent parameter to DataProvider for GetOpts functions 2025-02-07 13:18:43 +01:00
gezimbll
c602dbc2a5 added rsparser field in dynamicOpts
changed Value field to unexported and created a Value() method
on each dynOpts type that contains logic to create a rsparser
in case the value field a configuration starts with prefix "~"
otherwise it will return the specified value
2025-01-22 17:36:26 +01:00
armirveliaj
aea5fb0f18 Fix compilation errors 2025-01-13 13:39:50 +01:00
ionutboangiu
17405af987 Revise service manager logs
Logging is now done as ServiceManager level. Removed any other logs.
2025-01-10 20:18:08 +01:00
DanB
4025e5a34b Sessions struct changes 2025-01-10 20:14:45 +01:00
ionutboangiu
26910c5c01 Change build tag for basics_it_test.go (temp)
currently depends on local cfg files
2025-01-08 20:32:55 +01:00
ionutboangiu
96c957ba1c Format sessions/basics-it-test.go file 2025-01-08 20:32:55 +01:00
DanB
39952a3388 SessionS Authorize and ProcessCDR methods tested 2024-12-30 19:55:42 +01:00
ionutboangiu
3e98e37db3 Revise NewRPCClient helper function 2024-10-23 21:11:25 +02:00
ionutboangiu
ede004bc44 remove deprecated rand.Seed calls 2024-09-05 20:46:40 +02:00
ionutboangiu
2f387b5a0e chore: remove unnecessary parentheses
gofmt -r '(a) -> a' -w **/*.go
2024-09-05 20:46:40 +02:00
ionutboangiu
0f70af84e9 centralize test flags for shared use across tests 2024-08-15 18:17:33 +02:00
ionutboangiu
0dfb3b860d Centralize RPCClient constructor 2024-08-15 18:17:33 +02:00
ionutboangiu
1ef2afaa97 Update/remove dependencies
Remove cenkalti/rpc2 dependency and update client constructor.
Commented tests that only start and stop engine.

Fixed compilation errors caused by Azure/go-amqp update.

Remove cgrates/ugocodec dependency since we have everything
we need in ugoriji/go/codec and add tests for it.
2023-11-15 14:03:21 +01:00
gezimbll
32ed816de7 Replacing IsSliceMember ,CloneStringSlice and SliceStringEqual with slices package functions 2023-11-01 21:38:27 +01:00
ionutboangiu
efcb32741a Run gofmt 2023-09-28 20:48:39 +02:00
ionutboangiu
113e2a2bdf Replace interface{} with any 2023-05-31 10:22:28 +02:00
ionutboangiu
3e22cef9cb Revise integration tests after StorDB addition 2023-05-03 10:05:28 +02:00
adi
734776b113 Unified consts of opts 2022-10-03 18:29:24 +03:00
adi
1e51b6d73f Unified constants for subsystem/removed big S 2022-09-25 12:16:25 +02:00