Commit Graph

12720 Commits

Author SHA1 Message Date
ionutboangiu
046505c44b Change extension of .yml files to .yaml for consistency 2023-06-05 10:53:58 +02:00
ionutboangiu
c7fdb8bf5a Downgrade sphinx version to be compatible with latest sphinx-rtd-theme 2023-06-05 10:53:58 +02:00
ionutboangiu
15703c78a5 Remove go.yaml files in favour of install_go role 2023-06-05 10:53:58 +02:00
gezimbll
a664b31df0 Fix message on agents logs 2023-06-05 10:53:17 +02:00
ionutboangiu
6c16ff320f Replace interface{} with any 2023-05-31 10:23:12 +02:00
ionutboangiu
97c3dab0f4 Add implementation for ordered map 2023-05-31 10:23:12 +02:00
arberkatellari
f6a3af57dd Add error handler for Mongo GetCDrs remove 2023-05-31 10:19:13 +02:00
gezimbll
57d5c27f58 Fixing tpexporter initialization of slices 2023-05-25 08:12:20 +02:00
gezimbll
b95555a18b Fix cloning of variables with independent copy 2023-05-25 08:12:20 +02:00
ionutboangiu
f2201f3e62 Revise err handling for CSV storage constructor
NewFileCSVStorage() now returns an error besides the storage struct itself, which is
logged and returned instead of calling log.Fatal() which was causing the engine to
crash.

Fixed compilation errors by creating the CSVStorage separately and passing it as an
argument to the TpReader constructor.
2023-05-23 03:41:07 -04:00
arberkatellari
12039b9d93 Add test for createIncrementsSlice 2023-05-23 08:21:08 +02:00
gezimbll
ecc452703a Update toExportMap to initialize the slices with make() 2023-05-23 08:03:36 +02:00
gezimbll
d2fabb428c Fix exporter handling of timings slice 2023-05-23 08:03:36 +02:00
gezimbll
1c69fd2022 Improving coverage tests at engine 2023-05-18 19:29:41 +02:00
gezimbll
5d62899d75 Improving coverage tests at engine 2023-05-18 19:29:41 +02:00
ionutboangiu
c8bc978241 Replace the api docs link with the correct one 2023-05-18 19:28:39 +02:00
ionutboangiu
738cd86103 Make small revisions to installation docs 2023-05-18 19:28:39 +02:00
ionutboangiu
3036d4eb11 Pin transitive dependencies 2023-05-18 19:28:39 +02:00
ionutboangiu
d6f5eefa28 Revise .readthedocs.yaml cfg file 2023-05-18 19:28:39 +02:00
ionutboangiu
6911b4fb10 Revise doc for fs install + warning fixes 2023-05-18 19:28:39 +02:00
ionutboangiu
d64ce92a2d Add ansible role for kamailio 2023-05-18 19:28:39 +02:00
ionutboangiu
8f35f63822 Update asterisk installation docs 2023-05-18 19:28:39 +02:00
ionutboangiu
a2e3fa1d3a Use ansible roles for reusable tasks 2023-05-18 19:28:39 +02:00
arberkatellari
e17d952f9c Add warning for uncomputable increments 2023-05-18 19:27:43 +02:00
gezimbll
7a0ff57a36 Improving coverage tests 2023-05-07 19:25:48 +02:00
gezimbll
11e2e2dbb8 Improving coverage of unit tests 2023-05-07 19:25:48 +02:00
ionutboangiu
373df2329c Revise CDR rerating
If the reRate parameter is set to true, also set the refund to true.

The rerate parameter is now no longer hardcoded to true for the RateCDRs API.If
required, the "*rerate" flag must be provided by the caller.

In case CostDetails is not populated, retrieve it from StorDB if possible
and add it to the CGREvent before converting to CDRs.

Now that the refund happens before the debit, revise the expected values for
the testV1CDRsProcessEventWithRefund subtest within the
apier/v1/cdrs_it_test.go file.
2023-04-20 20:06:16 +02:00
gezimbll
f4c1fa0d3d Add packit.yaml for automated RPM builds 2023-04-19 16:10:15 +02:00
ionutboangiu
d262aaac8b Revise CDR rerating
If the reRate parameter is set to true, also set the refund to true.

In case CostDetails is not populated, before attempting to refund try to
retrieve it from StorDB.

Now that the refund happens before the debit, revise the expected values for
the testV1CDRsProcessEventWithRefund subtest within the
apier/v1/cdrs_it_test.go file.
2023-04-19 16:09:41 +02:00
arberkatellari
311d01861d Add Integration test for ResourceSv1GetResourceWithConfig 2023-04-06 11:50:03 +02:00
gezimbll
c2a21365aa Changed path for git repository 2023-03-21 16:22:19 +01:00
gezimbll
d57b6adaa6 Updated paths for copr ansible scripts 2023-03-21 16:22:19 +01:00
gezimbll
1bc7ddc712 adding meta storage types for migrator 2023-03-08 19:15:23 +01:00
gezimbll
7dd79308b8 fixing it tests for db type 2023-03-08 19:15:23 +01:00
gezimbll
b221a385e4 changed internal db type to *internal 2023-03-08 19:15:23 +01:00
gezimbll
5c4bf0e538 changing db type constants with leading * 2023-03-08 19:15:23 +01:00
gezimbll
f9b8fe38b8 updated folder name for copr ansible script 2023-03-08 19:15:23 +01:00
gezimbll
fedc99ab27 ansible scripts for copr server 2023-03-08 19:15:23 +01:00
gezimbll
541a73f22e spec and macros file for copr build 2023-03-08 19:15:23 +01:00
ionutboangiu
a7d2fc53e2 Add comment to getProcessOptions func 2023-03-08 19:13:04 +01:00
ionutboangiu
b1b9647104 Implement EventExporterCfg constructor and use it to get rid of boilerplate code 2023-03-06 17:01:12 +01:00
ionutboangiu
d69f08890b Compare GetStorageType() output to the correct constant 2023-03-01 16:13:49 +01:00
arberkatellari
475a239401 Improving Logger init 2023-02-27 09:14:45 +01:00
arberkatellari
e52fd1dbda Improve logger tests 2023-02-24 16:50:48 +01:00
ionutboangiu
25e08ebe79 Add options for SASL PLAIN auth (amqp 1.0) 2023-02-22 18:20:33 +01:00
ionutboangiu
f5d007a3e0 Revise caps unit test 2023-02-22 18:20:33 +01:00
ionutboangiu
a1449499cf Update to latest amqp 1.0 package version and fix compilation errors 2023-02-22 18:20:33 +01:00
ionutboangiu
0a9f6d90d9 Bump go version 2023-02-22 18:20:33 +01:00
ionutboangiu
d4cc3f39d6 Add integration tests for amqpv1 exporter 2023-02-21 18:27:45 +01:00
ionutboangiu
a8fa028ad7 Update amqpv1 library and fix compilation errors 2023-02-21 18:27:45 +01:00