126 Commits

Author SHA1 Message Date
ionutboangiu
8443af3a89 Relicense from GPLv3 to AGPLv3 2025-10-29 19:42:40 +01:00
gezimbll
8e89b84e03 added *gigawords DataConverter 2025-04-24 20:17:48 +02:00
arberkatellari
5463eb61c6 Adjust tests to InternalDB constructor 2025-04-11 13:09:50 +02:00
arberkatellari
ed584364d1 Add tests for internal DB dump and restore 2025-04-06 12:08:40 +02:00
arberkatellari
83e8ce3adc Add ability to modify diameter CE answer & replace go-diameter lib 2025-02-28 19:25:48 +01:00
armirveliaj
0688659c54 Add new unit tests on agents 2024-06-14 18:20:05 +02:00
gezimbll
7e3b1b7052 increased time.sleep for cache to remove on ttl 2024-06-12 14:53:30 +02:00
armirveliaj
e20200c30a Revise and Add new unit tests on agents 2024-06-06 13:17:59 +02:00
armirveliaj
eba876eec8 Add new unit test on agents 2024-06-06 13:17:59 +02:00
ionutboangiu
546ef39d54 Revise agents *uch unit test
- increase margin of error by 1ms
- in case of failure, retrieve the expiry time and log it along the
current time. Makes troubleshooting easier in the future.
2024-04-20 12:21:57 +02:00
ionutboangiu
04bff19ced Optimize AgentRequest test (2s->0.03s)
Lowering the cfg cache TTL to 5ms instead of 1s was enough to get
consistent results.
2024-04-11 18:23:57 +02:00
ionutboangiu
02c8ed11c1 Implement support for RADIUS CoA 2024-02-07 18:28:17 +01:00
ionutboangiu
9991b29cae Implement DisconnectSession API for RADIUS Agent
Updated radigo library to latest version.

Updated RadiusAgent to satisfy the birpc client interface.

Added *radDAdiscMsg OrderedNavigableMap type field within AgentRequest.
This one is similar to *diamreq, as it is used for building RADIUS
server-initiated Disconnect Requests.

radReplyAppendAttributes: refactored to reflect that it can now be
used to also append attributes to request packets, not only reply.

Added bidirectional support for session related RadiusAgent methods.

For Dynamic Authorization to be possible, a new field was added within RadiusAgent
that holds dicts and secrets only for the clients that support it. They are used
to create the DA Client sending Disconnect Requests.

Added a new cache partition to store Access-Request packets with the purpose
of using them to build the Disconnect Requests. They are identified by sessionID.
It defaults to the value of 'Acct-Session-id'.

Added a predefined '*dmr' template as well as a 'dmr_template' config option within
the 'radius_agent' config section. This will map to a custom or to the predefined
template and will be used to build the Disconnect Request. By default, it doesn't
point to any template (this also means that the Access-Request packets will not be
cached).

Another option added to 'radius_agent' is 'client_da_addresses', which lists the
RADIUS clients supporting Dynamic Authorization. The key represents the host of
the client, while the value represents the address to which we will send the
Disconnect Request.

Added integration test.
2024-02-07 18:28:17 +01:00
ionutboangiu
6c16ff320f Replace interface{} with any 2023-05-31 10:23:12 +02:00
gezimbll
7a0ff57a36 Improving coverage tests 2023-05-07 19:25:48 +02:00
Trial97
d97433909f Updated unit test 2021-10-21 14:30:20 +03:00
Trial97
8e2fdd239f Updated unit tests 2021-10-21 14:30:20 +03:00
nickolasdaniel
cc915d693c Added *tenant case for FieldAsInterface and tested it as well 2021-07-09 10:19:50 +02:00
porosnicuadrian
732cce24a9 Finished testing all prefixes for AgentRequest 2021-07-08 09:54:15 +02:00
porosnicuadrian
b000d05f37 Tested dumping for prefixes in agent request 2021-07-08 09:54:15 +02:00
Trial97
d53b6175d5 Updated flatsore ers 2021-05-17 18:00:31 +02:00
andronache
1dc8cdbebb Added tests for DateTime case in ParseField function 2021-05-04 16:22:29 +02:00
andronache
5c7abd097b Implemented *datetime type in AgentRequest and EventRequest and added tests for them 2021-04-29 17:48:22 +02:00
nickolasdaniel
fba94efc2b Coverage tests for config, agents, engine 2021-04-09 16:32:46 +02:00
Trial97
c13a5cf790 Finished implementing the DataNode as a replacement 2021-03-26 13:46:25 +01:00
Trial97
ba090352ec Updated agents tests 2021-03-26 13:46:25 +01:00
Trial97
e52e8d7622 Added Length Field in case of NMSlice and support for multiple indexes in template path 2021-03-18 16:46:55 +01:00
Trial97
0a7446bdad Added Config in agent request as dataprovider 2021-02-09 15:16:20 +01:00
andronache
1d0a814e42 Changed consts in utils 2021-01-11 10:57:44 +01:00
andronache
36da1a6309 Consts in utils 2021-01-11 10:57:44 +01:00
andronache
1470267727 Modified consts in utils 2021-01-07 18:15:35 +01:00
andronache
dbb9216b6e Modified consts in utils 2021-01-07 18:15:35 +01:00
TeoV
5775d09c7b Add infrastructure for AccountS in DataManager 2020-12-21 10:19:59 +01:00
porosnicuadrian
711d7d5a1a Removed error from NewDefaultCGRConfig signature's function 2020-12-02 14:00:35 +01:00
Trial97
128e678ef2 Updated caps stats to use cache onEvict function 2020-11-27 08:41:56 +01:00
Trial97
5da4cf6d1c Updated account action plans integration tests for cache 2020-10-31 20:52:09 +01:00
Trial97
841264a97a Moved all specific DB options in opts 2020-08-28 14:35:42 +02:00
Trial97
14ea06842f Updated modules 2020-08-07 09:27:02 +02:00
Trial97
f6c1fa4eaa Added new dataconverter *string2hex 2020-07-21 09:03:04 +02:00
Trial97
aecafbc290 Updated the code with the new Flags format 2020-07-20 12:58:41 +02:00
Trial97
69a012c05a Updated Filters with RSRParsers 2020-07-14 13:28:07 +02:00
Trial97
48a7440d2e Added more tests for ip2hex 2020-07-09 12:17:37 +03:00
Trial97
192048235b Removed RSRFilters from RSRParsers 2020-07-09 12:17:37 +03:00
TeoV
bbf3ce1324 Rename prefix from *cache to *uch 2020-06-29 10:59:31 +03:00
TeoV
31387e2fe2 Finish implementation for ees *file_csv format 2020-06-01 17:00:58 +02:00
Trial97
eee83b5213 Added tests for dynamic Set path 2020-05-26 09:34:06 +02:00
Trial97
90ca5eded0 Added benchmark for DynamicDataProvider 2020-05-22 17:00:43 +02:00
Trial97
ff7a2463cd Added test for DynamicDataProvider in AgentRequest 2020-05-22 17:00:43 +02:00
Trial97
f10f570a27 Removed config.NavigableMap 2020-05-18 13:26:06 +02:00
adragusin
56f898b9d0 Fixed err handling for Cache .Set/.Remove 2020-05-15 15:39:45 +02:00