Commit Graph

66 Commits

Author SHA1 Message Date
ionutboangiu
dd82bb3c4b Add sanity check to prevent xml reader panic
HierarchyPath parser now returns nil when
the path is empty (instead of a string slice with one
EmptyString element).

If the prefix is set to true, when calling the AsString
method on a nil HierarchyPath, only the separator will
be returned. This avoids a nil expr error coming from
the xmlquery library.

Use the Query and QueryAll functions from the xmlquery
package to be able to handle the errors ourselves and
avoid panics.

Added an integration tes for the special case where the
xml_root_path field is left empty. Before the change it
used to trim the root element from the path slice when
attempting to retrieve a the relative path slice.
2023-10-16 13:31:14 +03:00
ionutboangiu
8f4a3e8d13 Revise config integration test 2023-06-13 20:14:58 +02:00
ionutboangiu
62619ba3a5 Replace interface{} with any 2023-06-05 10:55:32 +02:00
ionutboangiu
a748ab629e Apply gofmt simplify code 2022-12-02 14:24:18 +02:00
Trial97
db3bf9f40d Updated build tags 2021-08-30 17:55:51 +03:00
nickolasdaniel
55d46cfa8a Removed caches_conns from RalsCfg 2021-06-17 15:43:22 +02:00
Trial97
07ef7f2609 Replaced max_call_duration config with default_usage for each ToR 2021-02-19 14:22:48 +01:00
Trial97
102bdeb94a SupplierS Require connections to RALs for calculating the cost 2020-10-20 19:54:47 +02:00
Trial97
8b81b6b8e4 Added *none ERs type. Closes #2201 2020-06-02 15:10:32 +02:00
Trial97
a1e99e37d5 Updated integration tests 2020-05-07 11:19:03 +02:00
Trial97
467ae7d271 Updated gob integration tests 2020-04-28 15:54:53 +02:00
adragusin
e06ae9c97a Added a new configuration option in ers, row_length 2020-04-07 15:17:37 +02:00
adragusin
a4a5c4070d Updated eventReader default config 2020-03-01 17:24:27 +01:00
Trial97
5cf8306f42 Updated integration tests 2020-01-30 10:21:48 +01:00
Trial97
1c4211612d Updated config tests 2020-01-30 10:21:48 +01:00
Trial97
0453d5cc52 Updated tests 2020-01-30 10:21:48 +01:00
Trial97
f18525a1db Updated path for cdre 2020-01-30 10:21:48 +01:00
Trial97
ab3fb01e7d Starting adding absolute path to cdre 2020-01-30 10:21:48 +01:00
TeoV
39f8502f7c Update integration test for config 2020-01-22 12:23:00 +02:00
TeoV
5425cbc172 Update integration test for config 2020-01-21 13:10:41 +02:00
Trial97
5fcca524a9 Updated sessions tests 2020-01-20 09:28:36 +02:00
adragusin
a836232021 Updated it tests 2020-01-15 10:45:59 -05:00
TeoV
4ea9cd3a48 Add XML to EventReader and test for it 2020-01-11 14:52:37 +02:00
Trial97
fc883ad930 Updated ConfigSv1.ReloadConfigFromJSON 2020-01-09 08:05:20 +02:00
Trial97
d60ac504b1 Updated ConfigSv1.ReloadSections to ConfigSv1.ReloadConfigFromJSON 2020-01-09 08:05:20 +02:00
Trial97
f9a4a296a1 Added ConfigSv1.ReloadSections 2020-01-09 08:05:20 +02:00
TeoV
e565370c50 Add sanity check for Session Replicate Connection 2020-01-08 10:07:25 -05:00
Trial97
e5c97a94ab Renamed META_DEFAULT to MetaDefault 2019-12-13 15:04:34 +02:00
TeoV
28868e8852 Add connections from Agents through ConnManager 2019-12-12 08:54:42 +02:00
TeoV
95477bcabc Add conncetions from Sessions and CDRs through ConnManager 2019-12-12 08:54:42 +02:00
TeoV
4bd4ae3ee9 Add connections through ConnManager 2019-12-12 08:52:49 +02:00
TeoV
18150825bb Add connections from Suppliers through ConnManager 2019-12-12 08:52:49 +02:00
TeoV
9435b99f1d Add connection from ThresholdS to ResourceS through ConnManager 2019-12-12 08:52:49 +02:00
TeoV
27789c4d36 Add connection from StatS to Threshold through ConnManager 2019-12-12 08:52:49 +02:00
TeoV
46bd095b1e Add Connection from Chargers to Attributes through ConnManager 2019-12-12 08:52:49 +02:00
Trial97
b4fe82c6d7 Updated rpcclient library 2019-12-09 18:04:26 +02:00
TeoV
4a201c6f9e Remove prefix when add items in internalDB 2019-12-04 07:29:32 -05:00
TeoV
3c85747fd4 Update integration test and remove RPCConns from precache list 2019-12-04 03:08:34 -05:00
Trial97
28cc543389 Updated NewInternalDB 2019-12-02 11:07:48 +02:00
adragusin
9ab8896c56 Removed default chargers and rals connections from cdrs 2019-11-25 17:30:28 +01:00
DanB
ba533bd706 Scheduler with support for filtering tasks 2019-11-06 13:57:11 +01:00
TeoV
722f74f652 Update integration tests 2019-10-30 14:43:10 +01:00
Trial97
c11e32a1eb Added Freeswitch config reload test 2019-10-28 12:17:15 +01:00
Trial97
4fae6f8e87 Added test for DNSAgent reload 2019-10-28 12:17:15 +01:00
Trial97
f6c1801368 Updated SessionS service shutdown 2019-10-28 12:17:15 +01:00
Trial97
5dd277835d Added tests for EventReader service 2019-10-28 12:17:15 +01:00
Trial97
2037cdda82 Added tests for SessionS service 2019-10-28 12:17:15 +01:00
Trial97
7f731bc3d7 Added config reload test for RALs section 2019-10-28 12:17:15 +01:00
Trial97
c821828d93 Updated RALs config 2019-10-28 12:17:15 +01:00
Trial97
60fef23caa Added CDR Server test 2019-10-28 12:17:15 +01:00