Commit Graph

10137 Commits

Author SHA1 Message Date
ionutboangiu
796b51be60 Add copy button extension for documentation code blocks 2023-06-12 14:18:37 +02:00
ionutboangiu
69b1e9279a Revise test to check for panic in case of rerate for a 0 cost CDR 2023-06-12 14:18:37 +02:00
ionutboangiu
b0bddb7c74 Update installation docs 2023-06-12 14:18:37 +02:00
ionutboangiu
1df7b52e17 Add cgr-engine binary to /usr/local/bin instead of /usr/bin 2023-06-12 14:18:37 +02:00
ionutboangiu
a554946162 Make rabbitmq role idempotent by replacing shell commands with apt_key 2023-06-07 10:28:32 +02:00
ionutboangiu
62619ba3a5 Replace interface{} with any 2023-06-05 10:55:32 +02:00
ionutboangiu
fbfb9fddd0 Revise exporter fields for fwv unit test 2023-06-05 10:55:32 +02:00
gezimbll
de2eaec25a Fixing tpexporter initialization of slices && testing errors for tpexporter 2023-05-31 10:21:02 +02:00
arberkatellari
43daf3efe5 Add error handler for Mongo GetCDrs remove 2023-05-25 11:35:53 +02:00
ionutboangiu
c83d097e9e Remove duplicate implementation 2023-05-25 08:58:05 +02:00
ionutboangiu
5f890881f0 Implement generic OrderedMap to keep track of csv/fwv record order 2023-05-25 08:52:32 +02:00
ionutboangiu
c7914f3bb3 Implement generic OrderedMap to keep track of csv/fwv record order 2023-05-25 08:41:26 +02:00
gezimbll
bda68b7a0d Revert slice initializiation with append 2023-05-24 09:59:41 +02:00
arberkatellari
e3cd50c26d Add case for AsExportMap field types 2023-05-23 08:20:37 +02:00
gezimbll
4e6da29569 Update toExportMap to initialize the slices with make() 2023-05-23 08:19:57 +02:00
ionutboangiu
e06fc9eb8d Check if RoundingDecimals is nil before loading
This prevents the nil pointer dereference panic occuring when not set it is not set.
2023-05-22 09:38:57 +02:00
gezimbll
a2633a7fd7 Improving coverage test at engine 2023-05-22 07:54:12 +02:00
ionutboangiu
a3a8c5a4a4 Make the FCTmpl.RoundingDecimals field a pointer
The purpose of this is to check whether RoundingDecimals was set from the fields configuration.
If it wasn't, we are going to be using the RoundingDecimals dictated by the general subsection.
2023-05-22 07:53:47 +02:00
ionutboangiu
6a6fefd0cd Improve cost formatting and parsing for CDRs
The FormatCost function in cdr.go now accepts an additional parameter of type *config.RSRParser. This is
then used to extract the value from its path as opposed to always using the value of the Cost field directly.

Improved the unit test for the FormatCost function. Now it has become a table-driven test and it handles
cases when the cost is retrieved from different fields other than  from the CDR.
2023-05-22 07:53:47 +02:00
gezimbll
b357dfa0df Improving coverage test at engine 2023-05-18 19:29:24 +02:00
gezimbll
021c860a81 Improving coverage tests at engine 2023-05-18 19:29:24 +02:00
gezimbll
4bfdebd48f Improving coverage tests at engine 2023-05-18 19:29:24 +02:00
gezimbll
00961123ff Improving coverage tests at engine 2023-05-18 19:29:24 +02:00
ionutboangiu
f45d33a70b Make use of roles in the it_tests ansible playbook 2023-05-18 19:28:16 +02:00
ionutboangiu
f523cb444a Implement install_kafka role 2023-05-18 19:28:16 +02:00
ionutboangiu
995199e634 Revise install_rebbitmq role 2023-05-18 19:28:16 +02:00
ionutboangiu
0657a9525e Make install_mongodb role idempotent 2023-05-18 19:28:16 +02:00
ionutboangiu
73fa59d32b Implement install_rabbitmq role 2023-05-18 19:28:16 +02:00
ionutboangiu
0743363bb2 Implement install_mongodb role 2023-05-18 19:28:16 +02:00
ionutboangiu
6b4dbbbe24 Change extension of .yml files to .yaml for consistency 2023-05-18 19:28:16 +02:00
ionutboangiu
051240f5e5 Downgrade sphinx version to be compatible with latest sphinx-rtd-theme 2023-05-18 19:28:16 +02:00
ionutboangiu
f3807bc656 Remove go.yaml files in favour of install_go role 2023-05-18 19:28:16 +02:00
gezimbll
dc2741c025 Improving coverage tests 2023-05-10 10:40:13 +02:00
gezimbll
f67c9e2455 Improving coverage tests at engine 2023-05-10 10:40:13 +02:00
ionutboangiu
40ba65a019 Make small revisions to installation docs 2023-05-10 10:39:53 +02:00
ionutboangiu
bca0cd8af1 Pin transitive dependencies 2023-05-10 10:39:53 +02:00
ionutboangiu
189a8dee7b Revise .readthedocs.yaml cfg file 2023-05-10 10:39:53 +02:00
ionutboangiu
609a9a129d Revise doc for fs install + warning fixes 2023-05-07 19:25:19 +02:00
ionutboangiu
4bc85329c5 Add ansible role for kamailio 2023-05-07 19:25:19 +02:00
ionutboangiu
d22df1736b Update asterisk installation docs 2023-05-07 19:25:19 +02:00
ionutboangiu
41cb903515 Use ansible roles for reusable tasks 2023-05-07 19:25:19 +02:00
ionutboangiu
25fa01fee0 Solve compilation errors after library update 2023-05-07 19:25:19 +02:00
gezimbll
e142f5efd7 Improving coverage tests 2023-05-03 10:03:35 +02:00
gezimbll
f62dea0768 Improving coverage for unit tests 2023-05-03 10:03:35 +02:00
gezimbll
a86d01be6b Improving coverage tests at engine 2023-05-03 10:03:35 +02:00
gezimbll
569c59af53 Improving coverage of unit tests 2023-05-03 10:03:35 +02:00
gezimbll
47e1d470cd Improving coverage of unit test 2023-05-03 10:03:35 +02:00
gezimbll
9f56532a4c Improving coverage of unit tests 2023-05-03 10:03:35 +02:00
gezimbll
c4ca1d1315 Improving coverage of unit test 2023-05-03 10:03:35 +02:00
ionutboangiu
82c13639b0 Revise test after tp update 2023-05-03 10:02:15 +02:00