Commit Graph

38 Commits

Author SHA1 Message Date
armirveliaj
d9a5458a43 Add new trends config option: scheduled_ids 2024-10-01 20:04:22 +02:00
ionutboangiu
962000656b Remove global err used by tests
Removed many leftover error checks for NewDefaultCGRConfig,
which does not return an error anymore.
2024-07-14 14:08:49 +02:00
armirveliaj
12b2e659b9 Add unit tests 2024-06-06 13:17:59 +02:00
armirveliaj
db0e663560 Coverage test for config 2024-05-23 00:13:59 +02:00
armirveliaj
1ef9ea768e Add unit test for orderedmap 2024-05-16 16:28:21 +02:00
armirveliaj
8e23794576 Revise unit tests
prevent panic for xmldp unit test
sort slice before comparing in radiuscfg unit test
2024-05-16 16:28:21 +02:00
armirveliaj
0e4ab4f322 Added Unit Tests in config 2024-05-16 16:28:21 +02:00
ionutboangiu
28e53cecc9 Add requests_cache_key field to radagent cfg 2024-03-07 17:20:23 +01: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
Varun Dhand
5e513d130d fix: typo in rjreader.go 2023-11-09 09:37:34 +01:00
arberkatellari
47e75fab13 Update radigo, add multiple folder functionality 2023-10-11 11:18:32 +02:00
ionutboangiu
6c16ff320f Replace interface{} with any 2023-05-31 10:23:12 +02:00
Trial97
9f75ab918c Updated biRPC support in connmanager 2021-02-22 11:53:56 +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
porosnicuadrian
711d7d5a1a Removed error from NewDefaultCGRConfig signature's function 2020-12-02 14:00:35 +01:00
Trial97
f158b191f3 Added Clone functions for all config sections 2020-11-27 08:41:56 +01:00
Trial97
c539800acd Added more Clone functions for config sections 2020-11-27 08:41:56 +01:00
Trial97
568df81745 Added cores package and tests for caps 2020-11-05 17:07:50 +01:00
porosnicuadrian
26fc655f2c Fixed the error description and added testsm in config 2020-10-29 16:57:01 +01:00
Trial97
1e6b5848e3 Updated AsMapInterface constants 2020-10-20 11:09:16 +02:00
Trial97
b06661af42 Added option to not read *env variables in RJReader 2020-10-15 12:41:04 +02:00
porosnicuadrian
7bc822a643 Covered to 100% migratorcfg and radiuscfg 2020-10-07 12:02:51 +02:00
porosnicuadrian
63e9d03908 Updated load tests for suretaxcfg 2020-09-30 13:28:16 +02:00
porosnicuadrian
6193f52e8f Updated load tests for radiuscfg 2020-09-30 13:28:16 +02:00
porosnicuadrian
7237d692a4 Updated radiuscfg AsMapInterface method 2020-09-25 13:03:28 +02:00
adragusin
7c2555e2c6 Updated AsMapInterface method for RadiusAgent/Added test 2020-04-28 17:09:37 +02:00
adragusin
6629dc6bee Reverted RoundingDecimals 2020-04-07 09:32:01 +02:00
adragusin
179067de5d updated rounding method and RowLength 2020-04-02 16:54:03 +02:00
TeoV
28868e8852 Add connections from Agents through ConnManager 2019-12-12 08:54:42 +02:00
Trial97
d88a14220a Updated config tests 2019-09-04 16:19:34 +02:00
TeoV
a8858be668 Use only one RequestProcessor for Agents 2019-04-18 12:24:20 +03:00
Tripon Alexandru-Ionut
c4a83afdd2 Renamed config.HAPoolConfig to config.RemoteHost 2019-03-29 13:27:32 +01:00
Trial97
8456b55a20 Updated integration tests after the move of Cache methods 2019-03-18 11:49:16 +01:00
TeoV
26cea43e4f Send separator for RSRParser as parameter in config 2018-11-25 17:42:42 +01:00
TeoV
d8977ffeba Add option "rsr_separator" in general config 2018-11-25 17:42:42 +01:00
Trial97
e1b8fe2321 Added tests for RARequestProcessor and RadiusAgentCfg loadFromJsonCfg 2018-10-31 11:02:30 +01:00