Commit Graph

1028 Commits

Author SHA1 Message Date
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
Eng Zer Jun
21bf25f038 Move from streadway/amqp to rabbitmq/amqp091-go
The `github.com/streadway/amqp` module is no longer actively maintained.
The new module is now maintained by the RabbitMQ core team under a
different package name.

Reference: https://github.com/rabbitmq/amqp091-go
Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
2023-02-02 08:34:14 +01:00
ionutboangiu
99548f291a Add tests for fraud detection using stats & thresholds 2023-01-13 16:22:02 +01:00
ionutboangiu
4305c505a8 Set contexts/subsystems to *any if empty + tests 2022-11-16 10:14:45 +01:00
ionutboangiu
7771de5e07 Apply go fmt project wide 2022-11-11 13:43:51 +01:00
ionutboangiu
213ade2b22 Add tests for csv filter separation 2022-11-11 13:43:51 +01:00
adi
8f416cdbca Improved dispatcher consts and opts test working 2022-10-21 18:05:21 +02:00
adi
d7ee81c86e Changed cache verification replication/remote 2022-10-21 10:12:44 +02:00
adi
eb1000fcb9 New errors for dispatcher hosts/profile 2022-10-19 10:31:10 +02:00
adi
9c3da4aa21 Integrated CallCache opts for dispatcher 2022-10-10 18:22:03 +02:00
adi
25cd303be6 IMproved sipatcher test cases and cache conn bug 2022-10-05 20:37:14 +03:00
ionutboangiu
3dfdf103ad Finish porting dispatcher updates from 1.0 2022-09-25 12:17:37 +02:00
ionutboangiu
895c140209 Port dispatcher changes from 1.0 to v0.11 2022-09-25 12:17:37 +02:00
ionutboangiu
62664d3c0d Repair general it tests 2022-07-12 17:59:09 +02:00
ionutboangiu
aaea87eb33 Make data and stordb opts into structs 2022-07-12 17:59:09 +02:00
ionutboangiu
bcdf9214c1 Add it test for exporting and rerating cdrs 2022-02-25 17:23:16 +01:00
porosnicuadrian
fa83e28b1d Fixed routes args from sessions to routes 2022-02-23 17:16:07 +01:00
ionutboangiu
46eccb6542 Remove refund sequence from store block (CDRsProcessEvent) and make CostDetails nil after a refund 2022-02-13 15:10:35 +02:00
ionutboangiu
e049f53c58 Update rereate_cdrs_it_test 2022-02-10 10:48:50 +02:00
ionutboangiu
3148c7f726 Add integration test for rerating pseudoprepaid cdrs 2022-02-06 09:50:54 +01:00
Trial97
9852be5b3a Added tests for in-memory indexing 2021-12-15 20:00:42 +01:00
Trial97
ac171f050e Updated integration tests 2021-11-28 10:25:32 +01:00
Trial97
df5adc6c96 Updated account interface 2021-11-28 10:25:32 +01:00
ionutboangiu
53c5bca394 Fix integration tests 2021-11-15 20:37:38 +01:00
ionutboangiu
1901be0485 Add opts for the routes subsystem 2021-11-15 20:37:38 +01:00
ionutboangiu
007cc0e7c8 Replace ArgRSv1ResourceUsage struct with CGREvent and fix tests 2021-11-11 12:22:41 +02:00
ionutboangiu
89782f8bdb Add opts for resources and fix compilation errors 2021-11-11 12:22:41 +02:00
ionutboangiu
777580a06e Add opts field for thresholds cfg struct and use the CGREvent instead of the ArgsProcessEvent struct 2021-11-05 21:15:50 +02:00
Trial97
9782e164c6 Updated sessions structure 2021-11-05 12:28:24 +02:00
Trial97
0d30516081 Updated session replication 2021-11-05 12:28:24 +02:00
ionutboangiu
5802e868c8 Remove StatsArgsProcessEvent and use CGREvent in its stead 2021-11-04 20:08:29 +02:00
ionutboangiu
2e241d9632 Remove AttrArgsProcessEvent type and use CGREvent in its stead 2021-11-03 21:03:33 +02:00
ionutboangiu
48feaf2bed Add opts field for attributes cfg struct and fix compilation errors 2021-11-03 21:03:33 +02:00
andronache
bcb564240e Corrected header in multiple files 2021-11-01 13:49:33 +02:00
andronache
e7c83cc262 Fixed integration test on mysql db 2021-10-25 11:20:22 +03:00
andronache
36fd12f806 Fixed integration test and added new one 2021-10-25 11:20:22 +03:00
Trial97
910105182b Updated integration tests 2021-10-21 14:30:20 +03:00
Trial97
8e2fdd239f Updated unit tests 2021-10-21 14:30:20 +03:00
Trial97
3e2ff64ee1 Added protection for Redis limit when setting indexes 2021-10-12 16:49:01 +03:00
Trial97
a1e0a34600 Started removing structmatcher 2021-10-12 16:49:01 +03:00
andronache
c36e498a7f Commented config test for now 2021-10-05 21:05:27 +02:00
Trial97
f70bcd2aae Updated DNSAgent Option handling 2021-10-05 21:01:00 +02:00
nickolasdaniel
e100d7eb71 Fixed integration tests regarding loaders where needed 2021-10-04 11:31:56 +02:00
nickolasdaniel
cb4593d188 Still trying to reproduce spikes 2021-10-04 11:31:56 +02:00
Trial97
051e52ac21 Updated sessions message handling 2021-10-04 11:30:13 +02:00
nickolasdaniel
dce8636c30 Added init session in profiling test. Only thing left is monitorize memory 2021-09-28 20:39:54 +02:00
nickolasdaniel
a01dc13c44 Fixed test regarding loaders config in general tests 2021-09-28 20:39:54 +02:00
Trial97
0abb2128fd Updated monetary balance test 2021-09-28 12:17:04 +02:00
Trial97
358d0bbabf Added test for monetary rating subject 2021-09-28 12:17:04 +02:00
Trial97
243242360f Updated EventCost Rounding. Fixes #3018 2021-09-23 11:40:49 +02:00