Commit Graph

5049 Commits

Author SHA1 Message Date
gezimbll
cf720550cb Improving coverage tests 2023-08-04 16:01:19 +02:00
gezimbll
763310e46c Improving and fixing tests 2023-08-02 16:48:48 +02:00
gezimbll
f1864b648b Improving coverage tests 2023-08-02 16:48:48 +02:00
gezimbll
19f6459330 Improved coverage tests 2023-08-02 16:48:48 +02:00
ionutboangiu
ef4a59c31e Apply gofmt to make workflow pass 2023-07-21 09:00:46 +02:00
gezimbll
7c4d18b4fd Added comments for sentrypeer filter functions and new constants 2023-07-20 09:10:55 +02:00
gezimbll
c4ff0b0184 Added logging for sentrypeer filter 2023-07-18 16:38:58 +02:00
gezimbll
5e846c792d Fixed naming of configs 2023-07-14 17:24:03 +02:00
gezimbll
2e93354ad1 Added new fields in sentrypeerCfg && implemented fallback loop on unauthorized requests 2023-07-14 17:24:03 +02:00
gezimbll
9af02771fd Added sentrypeer credentials in config && cache partition 2023-07-14 17:24:03 +02:00
gezimbll
2c1f5012fc Updated sentrypeer filter value types 2023-07-14 17:24:03 +02:00
gezimbll
8ed7bdd060 Added it test_for sentrypeer filter 2023-07-14 17:24:03 +02:00
gezimbll
ba20dbe831 Added filter implementation for sentrypeer 2023-07-14 17:24:03 +02:00
arberkatellari
5f04bcfe66 Add locks for dns service and agent 2023-06-27 11:06:27 +02:00
ionutboangiu
6c16ff320f Replace interface{} with any 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
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
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
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
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
ionutboangiu
d69f08890b Compare GetStorageType() output to the correct constant 2023-03-01 16:13:49 +01:00
ionutboangiu
b27ed9f53e Fix caps error typo 2023-02-16 11:28:36 +01:00
gezimbll
2217d1525c improving coverage at engine 2023-01-30 08:13:06 +01:00
gezimbll
d9821eb1bb improving coverage test at engine 2023-01-30 08:13:06 +01:00
gezimbll
4b4c591288 improving coverage at engine 2023-01-25 18:28:20 +01:00
gezimbll
b2afa909bc improving coverage at engine 2023-01-25 18:28:20 +01:00
gezimbll
0b9cf7ba7a improving coverage at engine 2023-01-23 17:30:36 +01:00
gezimbll
24a8143e02 improving coverage at engine 2023-01-20 18:23:45 +01:00
gezimbll
19125bf4e3 improving coverage at engine 2023-01-16 18:48:18 +01:00
gezimbll
aabab0b87c Improving coverage at engine 2023-01-13 16:28:40 +01:00
gezimbll
f626bdde2d Improving coverage at engine 2023-01-13 16:28:40 +01:00
gezimbll
db4dda2c10 Improving coverage at engine 2023-01-13 16:28:40 +01:00
adi
4c9d737b1d it tests and driver comments deleted 2023-01-13 16:22:48 +01:00
ionutboangiu
11bb48947e Also look for account id inside APIOpts 2023-01-13 16:22:02 +01:00
gezimbll
85fe98f5b2 Improving coverage at engine 2023-01-07 17:50:13 +01:00
gezimbll
edc72f8b35 Improving coverage at engine 2023-01-07 17:50:13 +01:00
gezimbll
e301ff3fc1 Improving coverage test at engine 2023-01-07 17:50:13 +01:00
gezimbll
9042aeced0 Improving coverage at engine 2022-12-27 18:30:15 +02:00
gezimbll
15f2a9ff75 Improving coverage at engine 2022-12-27 18:30:15 +02:00